diff --git a/core/model/SiteTree.php b/core/model/SiteTree.php index 7c27a57b1..97dd149b2 100644 --- a/core/model/SiteTree.php +++ b/core/model/SiteTree.php @@ -1764,7 +1764,8 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid $tag = ''; } - return ($tag) ? "<$tag>" . $this->MenuTitle . "" : $this->MenuTitle; + $text = Convert::raw2xml(str_replace(array("\n","\r"),"",$this->MenuTitle)); + return ($tag) ? "<$tag>" . $text . "" : $text; } /**