Navigation Menu

Skip to content

Commit

Permalink
MINOR Comment about HTMLValue::setContent() stripping out of carriage…
Browse files Browse the repository at this point in the history
… returns

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@111950 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
Sean Harvey authored and Sam Minnee committed Feb 2, 2011
1 parent 1a9b527 commit ea4b71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/HTMLValue.php
Expand Up @@ -46,7 +46,7 @@ public function getContent() {
*/
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(
Expand Down

0 comments on commit ea4b71f

Please sign in to comment.