gulp-inline icon indicating copy to clipboard operation
gulp-inline copied to clipboard

svg inline is altering html and php markup

Open onebitrocket opened this issue 8 years ago • 1 comments

I am finding that certain html and php markup is being converted when running inline for svgs. The main issue is converting html and html strings in php variables to self closing tags

Is this due to the svg being converted to short tags?

Is there a way I can prevent this from happening? I found a useShortTag setting for SVGO https://github.com/svg/svgo/pull/396

Is there a way to pass additional parameters to a transform plugin, similar to the pretty parameters? https://www.npmjs.com/package/gulp-svgmin#beautify

I've also looked in to the cheerio load settings https://github.com/cheeriojs/cheerio#loading

Specifically I think this is to do with concatenated strings and html a tag such as: '<h1>' . $my_content . '</h1>'; which gets converted to '<h1>' . $my_content . '';

onebitrocket avatar Nov 18 '16 14:11 onebitrocket

@onebitrocket , looks like formatting in your description is broken...

maxkoryukov avatar Dec 22 '16 07:12 maxkoryukov