regex for cleaning up inkscape markup - most SVGs should display the same if matches are removed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this regular expression detects most of the Inkscape markup in an SVG which can be safely removed for delivery to a browser | |
(style|(inkscape|sodipodi):[^=]+)="[^"]*"|id="(path|rect|layer|defs|g)[\d-]+" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment