Conceptually, this looks like
my $escaped = $content; $escaped =~ s/&/&/g; $escaped =~ s/</</g; $escaped =~ s/>/>/g; print "<textarea>$escaped</textarea>";
In reply to Re: HTML Problem getting entities into a textarea
by dws
in thread HTML Problem getting entities into a textarea
by muad33b
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |