http://www.perlmonks.org?node_id=428019


in reply to How to remove HTML tags from text

One (of many) possibilities is to remove whatever there is between "<" and ">" no matter whether it's really HTML. This could be achieved easily with Text::Balanced's "extract_bracketed".

pelagic