Changes the way we "uglify" html code, fixes <code><pre> blocks.

Previously we were using a very aggressive way of removing new lines. This completely messed up with code blocks, using BeautifulSoup we can do it in a intelligent way.