Remove extraneous html line breaks from marked-up text

Otherwise you get <pre>&lt;p&gt;foobar&lt;/p&gt;&lt;/ br&gt;</pre> rather than the <pre>&lt;p&gt;foobar&lt;/p&gt;</pre> that you had in the editor.