in reply to How to convert <,&,>,",' into XML <,&,>," ..
encode_entities($input, q{<>&"'}) from HTML::Entities will do the trick.
In Section
Seekers of Perl Wisdom
in reply to How to convert <,&,>,",' into XML <,&,>," ..