MINOR Comment about HTMLValue::setContent() stripping out of carriage returns

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@111950 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2010-10-12 10:06:27 +00:00 committed by Sam Minnee
parent 1a9b527053
commit ea4b71fd44

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(