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.
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.