Fabiano,
Why don't you don't use just HTML::Entities for the mapping and replacement?
--
Reini Urban - Programmer - [url]http://inode.at[/url]