From 084f74946d74ddde14f42bbb1b0ef75ab9ef6a09 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 19 Sep 2017 12:13:24 +0930 Subject: [PATCH] Allow setting the raw content of a CommentPost --- src/Core/Post/CommentPost.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Core/Post/CommentPost.php b/src/Core/Post/CommentPost.php index 492088552..3db0c7555 100755 --- a/src/Core/Post/CommentPost.php +++ b/src/Core/Post/CommentPost.php @@ -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. *