houbb / sensitive-word

👮‍♂️The sensitive word tool for java.(敏感词/违禁词/违法词/脏词。基于 DFA 算法实现的高性能 java 敏感词过滤工具框架。请勿发布涉及政治、广告、营销、翻墙、违反国家法律法规等内容。高性能敏感词检测过滤组件,附带繁体简体互换,支持全角半角互换,汉字转拼音,模糊搜索等功能。)
https://houbb.github.io/opensource/sensitive-word
Apache License 2.0
4.1k stars 545 forks source link

html 标签敏感词替换,右标签 > 被误脱敏 #68

Closed hss-oss closed 2 weeks ago

hss-oss commented 1 month ago

image image charIgnore设置为SensitiveWordCharIgnores.specialChars(),对于html文本,会向左多识别一位字符,比如: 输入 “

傻逼

”,返回"<p***

", 有个右标签 > 被替换掉了 image

houbb commented 2 weeks ago

感谢提醒 v0.19.2 版本已修正。