@mattkrick/sanitize-svg
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -30,3 +30,3 @@ "use strict"; | ||
const svgEl = div.firstElementChild; | ||
const attributes = Array.from(svgEl.attributes); | ||
const attributes = Array.from(svgEl.attributes).map(({ name }) => name); | ||
const hasScriptAttr = !!attributes.find((attr) => attr.startsWith('on')); | ||
@@ -33,0 +33,0 @@ const scripts = svgEl.getElementsByTagName('script'); |
{ | ||
"name": "@mattkrick/sanitize-svg", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "a small script to remove script tags from SVGs", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
7536