in reply to Removing Javascript

Sounds like you need an HTML Parser. Hmm, HTML::TokeParser?