in reply to Function templates done right

According to the docs for HTML::Filter:
This module is deprecated. HTML::Parser now provides the functionally of HTML::Filter much more efficiently with the the default handler.
You might find using HTML::Parser makes your life a little easier...

gav^