Not to fix html
source:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
after inline
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Document</title>
<style>
body {}
</style>
</head>
<body>
</body></html>
The last line is unnecessary
You want it not to close your tags?
Yes, because use child templates
would like this as well, it seems like every css inliner will try and "fix" html as an added bonus. I just want it to inline styles and leave everything else alone.
specifically, i want to inline styles for EJS templates that are for HTML emails, and the css inliner is trying to "fix" the rest of my HTML, which contains EJS template syntax, and everything gets all messed up:
ejs template:
<p><% if (data) {%>data.name<%}%></p>
output after css inliner:
<p><% if="" (data)="" {%="">data.name<%}%></%}%></%></p>
I'm aware there are options to change the EJS template "tags", so i can use something other than <% %> (and that does seem to be a workaround), but I want to use the default EJS syntax.
@philwinkel I have the same problem, how do you solve it?