JustinM01 Posted January 4, 2011 Share Posted January 4, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/223415-domdocumentsavehtml/ Share on other sites More sharing options...
johnny86 Posted January 4, 2011 Share Posted January 4, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/223415-domdocumentsavehtml/#findComment-1154941 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.