Hi,
I want to parse the html content of a post in a controller and I can't figure it out. I want to access the equivalent of contentHtml but in php from the backend.
I can access the (non formatted) content like this:
$firstPost = $discussion->firstPost()->first();
if ($firstPost && $firstPost->content) {
//...
}
how can I get the formatted version of the post?