# xssfilter **Repository Path**: wqt/xssfilter ## Basic Information - **Project Name**: xssfilter - **Description**: 利用goquery去除HTML文本中的javascript和白名单以外的属性 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## xssfilter 实验的利用goquery去除HTML文本中的javascript和白名单以外的属性 #### 过滤前: ```html
xss
这是段落前 abc
这是文本内容1,正常
这是文本内容2,包含onclick
这是文本内容3,包含class/id/style
这是文本内容4,包含onmouseup/script
xss
这是段落前 abc
这是文本内容1,正常
这是文本内容2,包含onclick
这是文本内容3,包含class/id/style
这是文本内容4,包含onmouseup/script