#assuming input is in $string $string=join('',map( m![<>\\/]! ? "#".char($_).";" : $_, split(//, $st +ring))); # ^^^^^^^ These are trouble characters
In reply to Re: Safer (and cleaner) way to print user-supplied text.
by swiftone
in thread Safer (and cleaner) way to print user-supplied text.
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |