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