HTML filter that is HTML5 compliant

后端 未结 5 1134
轻奢々
轻奢々 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条回答
  •  猫巷女王i
    2020-12-07 17:07

    The php tidy extension can be configured to recognize html5 tags. http://tidy.sourceforge.net/docs/quickref.html#new-blocklevel-tags

提交回复
热议问题