Adding comments and functionality to output HTML instead of text nodes.