Hi All, I'm trying to replace all linebreaks with html <br />, but due html normalization with the innerHTML propery in IE7 the following piece of code won't work in IE7
<div id="text"> thingy 1 thingy 2 </div> <script> var str = $('#text').html(); $('#text').html(str.replace(/\n/g, "<br />")); </script> (description of the normalization bug: http://www.quirksmode.org/bugreports/archives/2004/11/innerhtml_and_t.html) Does anyone has a crossbrowser workaround or another solution to this problem? Thanx in advance! -Paul