Fixed runtime errors due to last commit + HTML purifier config changes

apparently, it doesn’t support HTML (for HTML5) for the doctype.

also, I’m stupid.