public function renderText($htmlspecial = true, $nl2br = true, $raw = false) { // $back = trim($this->text); $back = $this->text; if ($htmlspecial) { $back = htmlspecialchars($back); } $back = GWF_BBCode::highlight($back); if (!$raw) { $back = GWF_BBCode::replaceSmileys($back); } if ($nl2br) { $back = nl2br($back); } return $back; }
public static function initHighlighter(array $highlight) { self::$highlight = $highlight; }