Add options to remove descriptive elements (#102)

* --remove-titles (removes <title>)
* --remove-descriptions (removes <desc>)
* --remove-descriptive-elements (removes <title>, <desc> and <metadata>)
This commit is contained in:
Eitot 2016-08-29 21:05:12 +02:00 committed by Eduard Braun
parent 842123a393
commit aa48c90d56
5 changed files with 111 additions and 11 deletions

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg">
<title>This is a title element with only text node children</title>
<desc>This is a desc element with only text node children</desc>
<metadata>This is a metadata element with only text node children</metadata>
</svg>

After

Width:  |  Height:  |  Size: 319 B