Incorrectly escapes '&', bungled input/output
strarsis opened this issue · comments
This imagemin plugin entitiy-escapes &
characters with &
although &
is also used for other entities like '
.
This results in changed SVG input which results in
incorrect svgo output, e.g. '
becomes '
.
Offending line: https://github.com/imagemin/imagemin-svgo/blob/master/index.js#L25
What would be the purpose of this string replacement anyway?
Running svgo directly results in correct output.
Edit: PR: #22
I also have this problem. You either have to remake your SVG so that it doesn't use fonts or else this packet is totally useless to use on those images.
I were just about to go make the modification myself but i saw that you already had a pull request active. Hope it gets merged soon.
Fixed by 47cdb50.