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:
Is this still true? This page seems to imply this information is outdated...
http://htmlpurifier.org/docs/enduser-customize.html
It still doesn't support HTML5 DOCTYPE but you can specify what tags you want to add using the guide above.
No, HTML Purifier does not currently support HTML 5.
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
I don't think it supports Html5 yet. Maybe suggest it to them or create a patch for it if you really need it..
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