Skip to content

是否能增加白名单 tag 功能? #36

Description

@kasuganosoras

开启了 html 标签白名单以后,如果用户插入一段这样的代码

<i onclick="alert(233)">XSS</i>

还是可以成功触发 onclick 事件
是否能加入一个白名单的功能,比如指定了只能加入 style、class 这些 tag
谢谢。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions