It's not the most elegant solution and I'm sure somebody else will whip up something really cool. It should do the trick though.$comment =~ s/\n/<br>/g; $comment =~ s/<br><br>/<br>/g;
In reply to Re: HTML String Parsing
by greywolf
in thread HTML String Parsing
by Ionizor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |