I use it all the time for debug outputmy %entity = ( '<' => '<', '>' => '>', '&' => '&', '"' => '"', ); $output =~ s/([<>&"])/$entity{$1}/g; print $output;
Dingus
In reply to Re: escaping anallowed chars for browser
by dingus
in thread escaping anallowed chars for browser
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |