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

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

HTMLpurifier 如何使用 htmlspecialchars 函数处理它们而不是删除任何标签(例如脚本)?我想要那个而不是删除标签,他让他无能。

设置 Core.EscapeInvalidTags 应该就是您要找的。