Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加一定程度的 XSS 安全过滤 #51

Closed
88250 opened this issue Apr 10, 2020 · 0 comments
Closed

增加一定程度的 XSS 安全过滤 #51

88250 opened this issue Apr 10, 2020 · 0 comments
Assignees

Comments

@88250
Copy link
Owner

88250 commented Apr 10, 2020

原始需求:Vanessa219/vditor#226

对最终渲染的 HTML 进行一定程度的 XSS 安全过滤,参考 bluemonday 的 UGC 策略进行实现。

  • 加入配置开关 Sanitize,默认不开启 XSS 安全过滤
  • 对于 HTML 渲染器根据开关进行处理
  • 对于 Vditor 渲染器(WG、IR)固定开启处理
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant