htmlpurifier with an html5 doctype

后端 未结 6 1228
天涯浪人
天涯浪人 2021-01-12 04:21

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:



        
相关标签:
6条回答
  • 2021-01-12 04:35

    Is this still true? This page seems to imply this information is outdated...

    0 讨论(0)
  • 2021-01-12 04:40

    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.

    0 讨论(0)
  • 2021-01-12 04:53

    No, HTML Purifier does not currently support HTML 5.

    0 讨论(0)
  • 2021-01-12 04:55

    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

    0 讨论(0)
  • 2021-01-12 04:59

    I don't think it supports Html5 yet. Maybe suggest it to them or create a patch for it if you really need it..

    0 讨论(0)
  • 2021-01-12 05:00

    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

    0 讨论(0)
提交回复
热议问题