如何预防 Web 富文本中的 XSS 攻击

1. XSS 原理和常见的几种攻击方式

  • https://github.com/shaowenchen/django-xss-cleaner
  • https://github.com/mozilla/bleach
  • https://github.com/leizongmin/js-xss
  • https://github.com/hinesboy/mavonEditor
  • https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP