Consider using HTML::Entities, and the encode_entities function. Read more here: http://search.cpan.org/~gaas/HTML-Parser-3.56/lib/HTML/Entities.pm
Boris, RTFM.
I should have
Bo, don't let facts get in the way of a good argument.
But this, for example, would encode just the <, &, >, and " characters: $encoded = encode_entities($input, '<>&"'); ...
<html><body> Simon & Garfunlkel<br> papier-mâché ō ௯<br> <br> Helps!</body></html>
TeamSite 6.1.0 SP 1The desired output html encoding is -//W3C//DTD XHTML 1.0 Transitional//ENI need to convert all the ampersands in the html body to & amp;What is the easiest way to do this?
In addition to reading manuals it sometimes helps to think as well.