fix html entity regex
dont trim non-breaking-spaces when testing
move tests from parse to render, now that decoding happens at runtime