in reply to escaping anallowed chars for browser
From a node I can't find on perlmonks comes this handy trick:
Enter any 47-digit prime number to continue.
I use it all the time for debug outputmy %entity = ( '<' => '<', '>' => '>', '&' => '&', '"' => '"', ); $output =~ s/([<>&"])/$entity{$1}/g; print $output;
Dingus
Enter any 47-digit prime number to continue.
In Section
Seekers of Perl Wisdom