Working on a test file for the html render. It seems to me like they are exactly the same but I'm still getting a test failure. Will try to find the bug.
Just needed to add a \n at the end of the string I was comparing to because after a closing tag the renderer always appends one.