in reply to OT: Perl and Javascript - escaping newlines
perl -e "$foo = qq|this\nwill\nlook\ndifferent|; $foo=~s/\n/<br>/g; p +rint $foo;" this<br>will<br>look<br>different c:\Temp> [download]
Celebrate Intellectual Diversity