Remove extraneous html line breaks from marked-up text

Otherwise you get <p>foobar</p></ br> rather than the <p>foobar</p> that you had in the editor.