Pregunta

Como lista blanca sólo algunos atributos con HTMLpurifier? Quiero HTMLpurifier para eliminar todos los otros atributos, no se permiten.

¿Fue útil?

Solución

HTML.AllowedAttributes . Tenga en cuenta que cuando se utiliza HTML.AllowedAttributes, tiene que ser también el uso HTML.AllowedElements . Y es probable que tengas que añadir más a medida que avanza . Al igual que para AllowedFrameTargets target="", AllowedRel, AllowedRev, EnableAttrID, ... No hay mucha variedad pero las pruebas a fondo.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top