|
@@ -37,7 +37,7 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
$this->save = function($content = null) { |
|
38
|
38
|
return $this->document->saveHtml($content); |
|
39
|
39
|
}; |
|
40
|
|
- $this->document->loadHtml('<' . '?xml encoding="UTF-8">' .$doc, LIBXML_HTML_NODEFDTD | LIBXML_HTML_NOIMPLIED); |
|
|
40
|
+ $this->document->loadHtml('<'.'?xml encoding="UTF-8">'.$doc, LIBXML_HTML_NODEFDTD | LIBXML_HTML_NOIMPLIED); |
|
41
|
41
|
|
|
42
|
42
|
if (strpos($doc, '<!') !== 0) { |
|
43
|
43
|
$templateNode = $this->document->getElementsByTagName('template')[0]; |
|
@@ -88,7 +88,7 @@ discard block |
|
|
block discarded – undo |
|
88
|
88
|
//Either return a whole DomDocument or return the output HTML |
|
89
|
89
|
if ($document) return $this->document; |
|
90
|
90
|
|
|
91
|
|
- $output = ($this->document->doctype) ? call_user_func($this->save, $this->document->doctype) . "\n" : ''; |
|
|
91
|
+ $output = ($this->document->doctype) ? call_user_func($this->save, $this->document->doctype)."\n" : ''; |
|
92
|
92
|
|
|
93
|
93
|
if ($this->document->documentElement->tagName !== 'template') $output .= call_user_func($this->save, $this->document->documentElement); |
|
94
|
94
|
else $output = $this->printDocument(); |
Please login to merge, or discard this patch.