HTML filter that is HTML5 compliant

后端 未结 5 1135
轻奢々
轻奢々 2020-12-07 16:24

Is there a simple approach to add a HTML5 ruleset for HTMLPurifier?

HP can be configured to recognize new tags with:

// setup configurable HP instanc         


        
5条回答
  •  长情又很酷
    2020-12-07 17:13

    im using a fix for wordpress but maybe this can help you too (at least for the array part)

    http://nicolasgallagher.com/using-html5-elements-in-wordpress-post-content/

    http://hybridgarden.com/blog/misc/adding-html5-capability-to-wordpress/

    also:

    http://code.google.com/p/html5lib/ A Python and PHP implementations of a HTML parser based on the WHATWG HTML5 specification for maximum compatibility with major desktop web browsers.

提交回复
热议问题