I'm having difficulties changing an error message in this app using Spring.
If the user enters in the wrong account a custom message (that I can't edit) fires.
I need to replace [BR][BR]
(coming from netBiscuits) with an empty string('');
The error message is from a message.properties file if I need to I will post that as well.
Here's my code:
var text = "[BR]''[BR]";
var data = st(text);
replace(data);
function st(ip)
{
var str = ip;
return str.replaceWith(/[.*?]/g,"");
}
This is not my original code, but the replace(data)
is a spin-off a test I was running with an alert box because after about 8 hours, I'm still stuck.