View Single Post
Old 02-13-2013, 04:02 PM   PM User | #2
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,044
Thanks: 197
Thanked 2,412 Times in 2,390 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
You need to make the regex case-insensitive for IE. I am surprised that your code works in any browser as / must be escaped with \.

Code:
warningMessageReplace = warningMessage.replace(/<\/br>/gi,'\r\n');
If you are 20 and you are not a socialist, then you have no heart. If you are 40 and you are still a socialist, then you have no brain.
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Last edited by Philip M; 02-13-2013 at 04:45 PM..
Philip M is offline   Reply With Quote