<?php namespace App\Helper; use App\BbCode\KnockoutDefinitionSet; class BBCode { private $content; public function __construct($content) { $this->content = $content; } public function render() { return nl2br(htmlentities($this->content)); } }