in reply to HTML::Element and "<br>" tags

It’s true:   “tags” are removed, and <br&rt; is a tag.

When faced with this problem... I cheated.   I used this regex: s/<br>/ /g ... which turns all of those tags into one blank space.

“Well, on the one hand, it’s a butt-ugly hack that you would never want to tell your mother about.   But, on the other hand ... it works.”

Replies are listed 'Best First'.
Re^2: HTML::Element and "<br>" tags
by locked_user sundialsvc4 (Abbot) on Oct 11, 2010 at 13:09 UTC

    Oh, fudge.   Perlmonks logged me out.   You probably have to backslash-escape the left and right angle brackets.   (But you already knew that, didn’t you?)