public static function PreProcess($text) { self::$code_blocks = array(); // Togli i blocchi [code][/code] dal testo $text = preg_replace_callback("/\\[code\\](.*?)\\[\\/code\\]\n?/s", 'CodeHighlighter::codeMatch', $text); return $text; }
public static function MessageToHtml($text) { $text = CodeHighlighter::PreProcess($text); $text = Smiles::Apply($text); $text = Text::BBCodesToHtml($text); $text = Text::AutoLink($text); $text = Text::EscapeCharsToHtml($text); $text = CodeHighlighter::PostProcess($text); return $text; }
public function getContent() { return CodeHighlighter::fixDeprecatedPreTags($this->getRaw('context')); }