You want HTML::Entities. That's it.
In reply to Re: escaping anallowed chars for browser by fruiture in thread escaping anallowed chars for browser by hotshot