Googling for HTML Entity finds HTML::Entites. What was bad about it that you didn't use it?
In reply to Re: Replacement of HTML Entites by Corion in thread Replacement of HTML Entites by Tommy1981