README 增加allowCommentTag选项的说明

This commit is contained in:
Zongmin Lei
2014-04-03 12:16:20 +08:00
parent bd7501bd6d
commit 1291fa1341
2 changed files with 42 additions and 0 deletions

View File

@@ -282,6 +282,27 @@ code:<script>alert(/xss/);</script>
code:
```
#### 去掉HTML备注
通过 `allowCommentTag` 来设置:
+ `true`:不处理
+ `false`默认自动去掉HTML中的备注
示例:
当设置 `allowCommentTag = false` 时,以下代码
```HTML
code:<!-- something --> END
```
过滤后将输出
```HTML
code: END
```
## 应用实例