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

Not to fix html

Open biao166 opened this issue 10 years ago • 4 comments

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

biao166 avatar Apr 15 '15 12:04 biao166

You want it not to close your tags?

ashaffer avatar Apr 19 '15 00:04 ashaffer

Yes, because use child templates

biao166 avatar Apr 20 '15 07:04 biao166

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 avatar Jul 13 '16 16:07 philwinkel

@philwinkel I have the same problem, how do you solve it?

cz2013 avatar Feb 28 '18 06:02 cz2013