Nicer printing of HTML tags at console

Let's try this again. Passes unit tests this time.