robert_gsfame Posted May 8, 2010 Share Posted May 8, 2010 I got <br /> in textarea n i wish to remove it I use string.replace("<br />"," "), string.replace(/<br>/gi, '\n'); n none of those works.... Quote Link to comment https://forums.phpfreaks.com/topic/201080-replace-in-textarea/ Share on other sites More sharing options...
xenophobia Posted May 10, 2010 Share Posted May 10, 2010 Try: string.replace(/<br \/>/ig, "\n"); Quote Link to comment https://forums.phpfreaks.com/topic/201080-replace-in-textarea/#findComment-1055678 Share on other sites More sharing options...
Ang3l0fDeath Posted May 10, 2010 Share Posted May 10, 2010 Example of the source code for the textarea would be helpful. if that <BR /> appears cause of javascript, well then remove that script or disable it, you can override/disable scripts by WebBrowser.Control or something like that, Opera does it, and im sure firefox does as well. Quote Link to comment https://forums.phpfreaks.com/topic/201080-replace-in-textarea/#findComment-1055757 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.