Jump to content

DOMDocument::saveHTML


JustinM01

Recommended Posts

Is there any reason that people can think as to why DOMDocument::saveHTML would remove the following:

 

<![if !vml]>
     <img src="someimage.jpg" />
<![endif]>

 

A little clarification... This HTML comment tag is used in my company's email newsletter code and is necessary to make Outlook 2007 behave properly. For whatever reason, saveHTML strips it out. I know that this doesn't conform to HTML standards and I'm guessing that that is why it is being stripped. BUT, from reading on the internet, saveHTML can produce junk html code anyways.

 

Any help is appreciated.

Link to comment
Share on other sites

I haven't tried but will DOMDocument format HTML according to document type definition file as it does with XML?

 

If so, it would propably help to take the .dtd file you are using from w3schools and edit your tag to the file. Save the file locally and use that in the <!DOCTYPE tag?

 

Just a guess.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.