mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
f0dc6c65ca
commit
65713da5d7
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user