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; }