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
This commit is contained in:
Sam Minnee 2010-10-19 05:07:45 +00:00
parent f0dc6c65ca
commit 65713da5d7

View File

@ -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(