in reply to how to remove html tags

I haven't used it at all but you may want to look at HTML-Strip from CPAN. Looks like it will do what you want.