From 65713da5d793b5aa710564fbd8ca2fa798e2a13b Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 19 Oct 2010 05:07:45 +0000 Subject: [PATCH] MINOR Comment about HTMLValue::setContent() stripping out of carriage returns (from r111950) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112947 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- integration/HTMLValue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/HTMLValue.php b/integration/HTMLValue.php index 735d749b4..9df869fa5 100755 --- a/integration/HTMLValue.php +++ b/integration/HTMLValue.php @@ -46,7 +46,7 @@ class SS_HTMLValue extends ViewableData { */ public function setContent($content) { // Ensure that \r (carriage return) characters don't get replaced with " " entity by DOMDocument - // apparently it's in the XML standard, but that messes it up because we're using HTML + // This behaviour is apparently XML spec, but we don't want this because it messes up the HTML $content = str_replace(chr(13), '', $content); return @$this->getDocument()->loadHTML(