in reply to escaping anallowed chars for browser
my %entity = ( '<' => '<', '>' => '>', '&' => '&', '"' => '"', ); $output =~ s/([<>&"])/$entity{$1}/g; print $output; [download]
Dingus