sanitize-html 2.12.0 → 2.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -453,7 +453,7 @@ function sanitizeHtml(html, options, _recursing) {
|
|
|
453
453
|
if (a === 'style') {
|
|
454
454
|
if (options.parseStyleAttributes) {
|
|
455
455
|
try {
|
|
456
|
-
const abstractSyntaxTree = postcssParse(name + ' {' + value + '}');
|
|
456
|
+
const abstractSyntaxTree = postcssParse(name + ' {' + value + '}', { map: false });
|
|
457
457
|
const filteredAST = filterCss(abstractSyntaxTree, options.allowedStyles);
|
|
458
458
|
|
|
459
459
|
value = stringifyStyleAttributes(filteredAST);
|
package/package.json
CHANGED