premailer icon indicating copy to clipboard operation
premailer copied to clipboard

Creating <doctype> and other tags when it is not been given at the source file.

Open abhilashlr opened this issue 9 years ago • 2 comments

My input HTML is like

<div class="a">
    <div class="b">abc</div>
</div>

But it generates the following:

<!DOCTYPE html ...>
    <head></head>
    <body>
        <div class="a" style="a:b">

Is there a way to suppress the doctype and other tag which are not given in the source file?

abhilashlr avatar Aug 25 '15 05:08 abhilashlr

This is important to us as well. We do not want the wrapping html/body tags to be generated.

kevinelliott avatar Jul 13 '17 19:07 kevinelliott

I have modified premailer to solve this problem with this PR: https://github.com/premailer/premailer/pull/348

kevinelliott avatar Jul 14 '17 17:07 kevinelliott