HTML::StripScripts::Parser --> uses HTML::Parser to tokenise the HTML --> uses callbacks in HTML::StripScripts to filter the XSS and tidy the HTML --> uses callbacks in HTML::StripScripts::LibXML to build a DOM tree