From e8da9c9eb88f36ad85b7eac2edc973161fd29fc7 Mon Sep 17 00:00:00 2001 From: jonom Date: Sun, 27 Jan 2013 09:37:35 -0700 Subject: [PATCH] API: Use HTMLText as default for RSS Description To allow for custom RSS descriptions (i.e. provided by a method rather than a DB field) and avoid double escaping a better default class for Description is 'HTMLText'. http://www.silverstripe.org/customising-the-cms/show/11606#post319519 --- api/RSSFeed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/RSSFeed.php b/api/RSSFeed.php index 163a93e2f..0a2167dac 100644 --- a/api/RSSFeed.php +++ b/api/RSSFeed.php @@ -293,7 +293,7 @@ class RSSFeed_Entry extends ViewableData { * @return string Returns the description of the entry. */ public function Description() { - return $this->rssField($this->descriptionField, 'Text'); + return $this->rssField($this->descriptionField, 'HTMLText'); } /**