in reply to HTML::TreeBuilder Remove all HTML

Replace the tags that put spaces or line breaks in with non-tag characters or patterns, then remove all tags with the module specified above, and replace the non-tag characters or patterns with <br> and <p>.