From 9f05ac814bc818dc220b249cea0aa452d436d136 Mon Sep 17 00:00:00 2001 From: Patrick Klingemann Date: Thu, 23 Mar 2017 12:45:21 -0400 Subject: [PATCH] add removeScriptElement plugin --- .svgo.yml | 1 + README.md | 1 + README.ru.md | 1 + plugins/removeScriptElement.js | 23 +++++++++++++++++++++++ test/plugins/removeScriptElement.01.svg | 12 ++++++++++++ 5 files changed, 38 insertions(+) create mode 100644 plugins/removeScriptElement.js create mode 100644 test/plugins/removeScriptElement.01.svg diff --git a/.svgo.yml b/.svgo.yml index a2b6e5202..a504b9666 100644 --- a/.svgo.yml +++ b/.svgo.yml @@ -57,6 +57,7 @@ plugins: - removeElementsByAttr - addClassesToSVGElement - removeStyleElement + - removeScriptElement - addAttributesToSVGElement # configure the indent (default 4 spaces) used by `--pretty` here: diff --git a/README.md b/README.md index 73e3393e6..bd6db0461 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ Today we have: | [addClassesToSVGElement](https://github.com/svg/svgo/blob/master/plugins/addClassesToSVGElement.js) | add classnames to an outer `` element (disabled by default) | | [addAttributesToSVGElement](https://github.com/svg/svgo/blob/master/plugins/addAttributesToSVGElement.js) | adds attributes to an outer `` element (disabled by default) | | [removeStyleElement](https://github.com/svg/svgo/blob/master/plugins/removeStyleElement.js) | remove `