Search code examples
phphtmlpurifier

HTMLpurifier how to that instead of deleting any tags (e.g. script) it handles them with the htmlspecialchars function?


HTMLpurifier how to that instead of deleting any tags (e.g. script) it handles them with the htmlspecialchars function? I want that instead of removing the tag, he made him incompetent.


Solution

  • The setting Core.EscapeInvalidTags should be what you're looking for.