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:
As for fall of 2017 seems there are still no official support.
...but you can check some kind of workaround for HTML5 here: https://github.com/kennberg/php-htmlpurfier-html5
and another one: https://github.com/xemlock/htmlpurifier-html5