diff --git a/integration/HTMLValue.php b/integration/HTMLValue.php index 3ec0a70f8..ee38a6535 100755 --- a/integration/HTMLValue.php +++ b/integration/HTMLValue.php @@ -29,7 +29,6 @@ class SS_HTMLValue extends ViewableData { * @return string */ public function getContent() { - $content = $this->cleanContent(); // strip the body tags from the output (which are automatically added by DOMDocument) return preg_replace ( array ( @@ -37,7 +36,7 @@ class SS_HTMLValue extends ViewableData { '/<\/body[^>]*>\s*$/i' ), null, - $content + $this->getDocument()->saveXML($this->getDocument()->documentElement->lastChild) ); } @@ -51,44 +50,7 @@ class SS_HTMLValue extends ViewableData { "
$content