Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Invalid character entity" with illustrator svgs #272 #476

Closed
wants to merge 1 commit into from

Conversation

kaij
Copy link

@kaij kaij commented Jan 4, 2016

Makes external entities declared in doctype known to the sax parser in svgo. This allows the source file to be saved in illustrator with preserved editing capabilities. Added a very basic test to check and sample file to check whether the parser runs through. Shouldn't have too many side effects.

Note: there are activities around entity parsing going on in the sax parser itself, see isaacs/sax-js#162. But it doesn't seem to have high priority. I think putting a (maybe temporary) fix in svgo is useful because the workflow Illustrator -> SVG -> SVGO -> Grunt Webfont is quite common.

@GreLI GreLI closed this in 0d91a04 Jan 4, 2016
@GreLI
Copy link
Member

GreLI commented Jan 4, 2016

Thanks for contribution! I was simultaneously thinking in the same direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants