Fix bug to support application/xhtml+xml

I tracked down this bug as part of debugging this issue: https://github.com/ankit/stylebot/issues/156

xhtml requires that all tags are properly closed
Merge pull request #230 from ankit/patch-2

Fix bug to support application/xhtml+xml