/** * Get the content rendered as HTML. * * @return string */ public function getContentHtmlAttribute() { if ($this->is_html) { return nl2br($this->content); } return static::$formatter->render($this->attributes['content'], $this); }
/** * Get the content rendered as HTML. * * @param string $value * @return string */ public function getContentHtmlAttribute($value) { return static::$formatter->render($this->attributes['content'], $this); }