• Resolved therealshadowhunter

    (@therealshadowhunter)


    Hello,

    As you know sending HTML emails to render good in both Outlook, GMAIL and others requires a lot of trickery. I used BEE Free online to make a simple HTML template that has all the code to do the trick.

    Once I paste this HTML code to the email editor and switch back and forth from visual it strippes out (sanitizes) a lot of code replacing it by a paragraph with non breaking space, compromising the whole thing…

    Is there a way (filter) to turn off this sanitzing or another way of using the generated template from BEE fee (https://beefree.io)

    For example:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml">
    <head>
    <!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <meta content="width=device-width" name="viewport"/>
    <!--[if !mso]><!-->
    <meta content="IE=edge" http-equiv="X-UA-Compatible"/>
    <!--<![endif]-->
    <title></title>
    <!--[if !mso]><!-->
    <!--<![endif]-->
    <style type="text/css">
    		body {
    			margin: 0;
    			padding: 0;
    		}
    

    Becomes:

    <p>&nbsp;</p>
    <!-- [if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]-->
    <p>&nbsp;</p>
    <!-- [if !mso]><!-->
    <p>&nbsp;</p>
    <!--<![endif]-->
    <p>&nbsp;</p>
    <!-- [if !mso]><!-->
    <p>&nbsp;</p>
    <!--<![endif]-->
    <p><style type="text/css">
    		body {
    			margin: 0;
    			padding: 0;
    		}
    

    Thank you so much for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML email stripped when switching from tekst to visual’ is closed to new replies.