2012-06-01, 06:38:57
Yeah that is a little pain in the ass trick to get the xmldoc to work properly, since you can't pass a doctype directly to it.
Ill get this fixed, thanks.
The substr method wnot work prior to php 5.2.6 since it doesnt add this junk to the output.
This is all you need to modify.
Ill get this fixed, thanks.
The substr method wnot work prior to php 5.2.6 since it doesnt add this junk to the output.
This is all you need to modify.
Code:
223 $html_fragment = preg_replace('/^<!DOCTYPE.+?>|<head.*?>(.*)?<\/head>/i', '', str_replace( array('<html>', '</html>', '<body>', '</body>'), array('', '', '', ''), $dom_document->saveHTML()));