That's dangerous; DANGEROUS, I say.
Use taint checking on user input, always! (and using <pre> is not nearly as good a cure for your problem as a variant of advice offered above: s/\n/<br>/m;)
In reply to Re^3: Formatting Input
by ww
in thread Formatting Input
by akwe-xavante
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |