mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
3457f43839
commit
e8da9c9eb8
@ -293,7 +293,7 @@ class RSSFeed_Entry extends ViewableData {
|
|||||||
* @return string Returns the description of the entry.
|
* @return string Returns the description of the entry.
|
||||||
*/
|
*/
|
||||||
public function Description() {
|
public function Description() {
|
||||||
return $this->rssField($this->descriptionField, 'Text');
|
return $this->rssField($this->descriptionField, 'HTMLText');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user