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.... 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"); 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. Link to comment https://forums.phpfreaks.com/topic/201080-replace-in-textarea/#findComment-1055757 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.