Hi all,
IE is handling the following Javascript differently than FF. I'm outputting data that goes thru XSLT
(which trims the carriage returns from the data). The following works fine in FF, but doesn't work in IE 6 or 7.
<script type="text/javascript">
var x = document.getElementById("column");
var txt = x.innerHTML;
var reg1 = new RegExp(/\n/g);
x.innerHTML = txt.replace(reg1, 'xxxxxxxxxxxxxxxxxxxxx');
</script>
Is there something I'm missing or doing incorrectly?
TIA,
- Mark