Sorry for confusion.
I know LWP. My task is to strip HTML file, I may not know its URL. I checked example with HTML::Strip and it does not look very good for me.
Ideally I would like to have something like that:
http://www.zubrag.com/tools/html-tags-stripper.php
Try it. It works very well for me. I do not think it is possible to strip that good using HTML::Strip or I am missing something.