#1 'Stack level too deep' when HTML-izing something with lots of whitespace