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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanitize-html",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "description": "Clean up user-submitted HTML, preserving allowlisted elements and allowlisted attributes on a per-element basis",
5
5
  "sideEffects": false,
6
6
  "main": "index.js",