Actually fix xhtml parse issue

Turns out the problem was actually that the html was multiline. Regardless of passing the m option, javascript doesn't properly support a single line regex.

Easy fix is to match \s\S (whitespace and not whitespace) rather than . so the match can break across lines.