Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not to fix html #18

Open
biao166 opened this issue Apr 15, 2015 · 4 comments
Open

Not to fix html #18

biao166 opened this issue Apr 15, 2015 · 4 comments

Comments

@biao166
Copy link

biao166 commented Apr 15, 2015

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

@ashaffer
Copy link
Owner

You want it not to close your tags?

@biao166
Copy link
Author

biao166 commented Apr 20, 2015

Yes, because use child templates

@philwinkel
Copy link

philwinkel commented Jul 13, 2016

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.

@cz2013
Copy link

cz2013 commented Feb 28, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants