mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
This commit is contained in:
parent
5d10b7589c
commit
4423407f48
@ -110,12 +110,12 @@ class BlogEntry extends Page {
|
||||
*/
|
||||
function ParagraphSummary(){
|
||||
if(self::$allow_wysiwyg_editing) {
|
||||
return $this->obj('Content')->FirstParagraph();
|
||||
return $this->obj('Content')->FirstParagraph('html');
|
||||
} else {
|
||||
$content = new Text('Content');
|
||||
$content->value = $this->Content;
|
||||
$parser = new BBCodeParser($content->FirstParagraph());
|
||||
return $parser->parse();
|
||||
$parser = new BBCodeParser($this->Content);
|
||||
$html = new HTMLText('Content');
|
||||
$html->setValue($parser->parse());
|
||||
return $html->FirstParagraph('html');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user