HTMLpurifier如何使用htmlspecialchars函数处理它们而不是删除任何标记(例如脚本)?

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.

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