in reply to parsing html content

And check out HTML::TokeParser.