in reply to Safer (and cleaner) way to print user-supplied text.
use HTML::Entities; my $encoded = encode_entities( $input, "&;" ); [download]