CKEditor 和安全 AJAX
如何使用 CKEditor 保护我的项目免受 XSS 侵害?没有好的 PHP BBCode 解析器(至少我找不到),那么我应该如何验证从 CKEditor 传入的字符串以防止 XSS?或者是否有一个好的 PHP BBCode 解析器可以解析 CKEditor 的 BBCode 中的所有内容?
How can I secure my project from XSS using CKEditor? There is not good PHP BBCode Parser (at least I can't find one), so what should I do to validate the incoming string from CKEditor to prevent XSS? Or is out there a GOOD PHP Parser for BBCode that parses evereything from the CKEditor's BBCode?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试 HTMLPurifier,这样您甚至可以避免 bbcode。
You could try the HTMLPurifier, so you could even avoid bbcode.