http://qs321.pair.com?node_id=449471


in reply to HTML Sanitizer (removes unwanted tags)

Where does sub output() get invoked?

Replies are listed 'Best First'.
Re^2: HTML Sanitizer (removes unwanted tags)
by lhoward (Vicar) on Apr 20, 2005 at 10:58 UTC
    Been too long since I wrote that code. In that code I am subclassing HTML::Filter into HTML::Sanitizer, replacing its output sub with the I wrote. I never explicitly call it.

    There are slicker ways to solve this problem today, for instance the HTML::Sanitizer module that didn't even exist when I wrote this example.

    L