🐛 Fix problem uploading svg with style tag

This commit is contained in:
alonso.torres 2023-01-09 11:54:50 +01:00
parent 2c1fb1424c
commit c42ef7c5b0
4 changed files with 13 additions and 4 deletions

View file

@ -21,7 +21,7 @@
(defonce matrices-regex #"(matrix|translate|scale|rotate|skewX|skewY)\(([^\)]*)\)")
(defonce number-regex #"[+-]?\d*(\.\d+)?(e[+-]?\d+)?")
(defonce tags-to-remove #{:defs :linearGradient :radialGradient :metadata :mask :clipPath :filter :title})
(defonce tags-to-remove #{:linearGradient :radialGradient :metadata :mask :clipPath :filter :title})
;; https://www.w3.org/TR/SVG11/eltindex.html
(defonce svg-tags-list