You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 svg/svgo#396
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 . '';
The text was updated successfully, but these errors were encountered:
onebitrocket
changed the title
svg inine is affecting other code
svg inline is altering html and php markup
Nov 18, 2016
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
svg/svgo#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 . '';
The text was updated successfully, but these errors were encountered: