gulp-inline
gulp-inline copied to clipboard
svg inline is altering html and php markup
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 , looks like formatting in your description is broken...