in reply to Escaping HTML tags (was: Content-Type: text/html;)

Like other monks I'm not quite sure what you want to achieve, but for many of the things you might be after, HTML::TagParser would be useful

§ George Sherston