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:
I don't think it supports Html5 yet. Maybe suggest it to them or create a patch for it if you really need it..