/** * Format a string of post content using the set formatter. * * @param string $content * @return string */ protected static function formatBio($content) { return static::$formatter->format($content); }
/** * Get the content rendered as HTML. * * @param string $value * @return string */ public function getContentHtmlAttribute($value) { return static::$formatter->render($this->attributes['content'], $this); }
/** * Format a string of post content using the set formatter. * * @param string $content * @return string */ protected static function formatContent($post) { return static::$formatter->format($post->content, $post); }