sanitize-html
Advanced tools
Comparing version 2.0.0 to 2.1.0
# Changelog | ||
## 2.1.0 (2020-10-07): | ||
- `sup` added to the default allowed tags list. Thanks to [Julian Lam](https://github.com/julianlam) for the contribution. | ||
- Updates default `allowedTags` README documentation. Thanks to [Marco Arduini](https://github.com/nerfologist) for the contribution. | ||
## 2.0.0 (2020-09-23): | ||
@@ -4,0 +8,0 @@ - `nestingLimit` option added. |
@@ -691,3 +691,3 @@ const htmlparser = require('htmlparser2'); | ||
'rb', 'rp', 'rt', 'rtc', 'ruby', | ||
's', 'samp', 'small', 'span', 'strong', 'sub', 'time', 'u', 'var', 'wbr', | ||
's', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'time', 'u', 'var', 'wbr', | ||
// Table content | ||
@@ -694,0 +694,0 @@ 'caption', 'col', 'colgroup', 'table', 'tbody', 'td', 'tfoot', 'th', |
{ | ||
"name": "sanitize-html", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -101,5 +101,11 @@ # sanitize-html | ||
```js | ||
allowedTags: [ 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', | ||
'nl', 'li', 'b', 'i', 'strong', 'em', 'strike', 'abbr', 'code', 'hr', 'br', 'div', | ||
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'iframe' ], | ||
allowedTags: [ | ||
"address", "article", "aside", "footer", "header", "h1", "h2", "h3", "h4", | ||
"h5", "h6", "hgroup", "main", "nav", "section", "blockquote", "dd", "div", | ||
"dl", "dt", "figcaption", "figure", "hr", "li", "main", "ol", "p", "pre", | ||
"ul", "a", "abbr", "b", "bdi", "bdo", "br", "cite", "code", "data", "dfn", | ||
"em", "i", "kbd", "mark", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", | ||
"small", "span", "strong", "sub", "sup", "time", "u", "var", "wbr", "caption", | ||
"col", "colgroup", "table", "tbody", "td", "tfoot", "th", "thead", "tr" | ||
], | ||
disallowedTagsMode: 'discard', | ||
@@ -106,0 +112,0 @@ allowedAttributes: { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65676
578