Allow setting the raw content of a CommentPost

This commit is contained in:
Toby Zerner 2017-09-19 12:13:24 +09:30
parent 1e8399c014
commit 084f74946d

View File

@ -153,6 +153,16 @@ class CommentPost extends Post
$this->attributes['content'] = $value ? static::$formatter->parse($value, $this) : null;
}
/**
* Set the parsed/raw content.
*
* @param string $value
*/
public function setParsedContentAttribute($value)
{
$this->attributes['content'] = $value;
}
/**
* Get the content rendered as HTML.
*