README 增加allowCommentTag选项的说明
This commit is contained in:
21
README.md
21
README.md
@@ -291,6 +291,27 @@ would output filtered:
|
||||
code:
|
||||
```
|
||||
|
||||
#### Filter out HTML comments
|
||||
|
||||
By using `allowCommentTag` parameter:
|
||||
|
||||
+ `true`: do nothing
|
||||
+ `false` by default: filter out HTML comments
|
||||
|
||||
Example:
|
||||
|
||||
If `allowCommentTag = false` is set, the following code:
|
||||
|
||||
```HTML
|
||||
code:<!-- something --> END
|
||||
```
|
||||
|
||||
would output filtered:
|
||||
|
||||
```HTML
|
||||
code: END
|
||||
```
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
Reference in New Issue
Block a user