Open jklegseth opened 10 years ago
Any issues with code formatting should be brought up with the juice2 module. Thanks.
This may have changed now that this plugin relies on cheerio.js rather than jsdom.
This is still an issue.
+1 I have the same problem.
Here's the solution:
In the node-modules>inline-css>lib folder, manually change the code in the file inline-css.js
From this code
return decodeEntities($.html());
Make one:
return decodeEntities($.xml());
Thank you to sgarbesi: https://github.com/jonkemp/gulp-inline-css/issues/28#issuecomment-159038975
Running the task on pages with self-closing tags and piping to another directory strips the "closing" part, i.e.,
<br />
becomes<br>
.Using a modified version of the HTML page you have in the README:
Note that the
meta
tag and thebr
are self-closing. And run this configuration:The output is:
I played around with
removeStyleTags
andremoveLinkTags
but the problem didn't change.