Skip to content

Commit

Permalink
README changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gkumar9891 committed Mar 5, 2024
1 parent d6cd120 commit eb4b10c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -709,14 +709,14 @@ This will transform `<disallowed>content</disallowed>` to `&lt;disallowed&gt;con

Valid values are: `'discard'` (default), `'completelyDiscard'` (remove disallowed tag's content), `'escape'` (escape the tag) and `'recursiveEscape'` (to escape the tag and all its content).

#### Discard disallowed tag but keep its inner content
#### Discard disallowed but but the inner content of disallowed tags is kept.

If you set `disallowedTagsMode` to `discard`, disallowed tags are discarded but don't remove inner content of disallowed tags.

```js
disallowedTagsMode: 'discard'
```
This will tranform `<disallowed>content</disallowed>` to `content`
This will transform `<disallowed>content</disallowed>` to `content`

#### Discard entire content of a disallowed tag

Expand Down

0 comments on commit eb4b10c

Please sign in to comment.