Is it possible to have htmlpurifier use the html5 doctype?
The documentation here states that you can change the doctype and encoding with the following:
Here's a reworked HTML5 version of html purifier - found this when searching for html5 implementation/use of htmlPurify: https://github.com/xemlock/htmlpurifier-html5