object. The used textprocessor is determined by the $texttype property. * * Parameters: * $translationobj - The object. * * Returns: * HTML */ function textprocessor_apply_translation($translationobj) { return textprocessor_apply($translationobj->text, $translationobj->texttype); } if(!isset($textprocessors)) { $textprocessors = array( "Markdown" => array("Markdown", True), "Plain Text" => array(function($text) { return str_replace(array("\r\n", "\n"), array("
", "
"), htmlesc($text)); }, True), "HTML" => array(function($text) { return $text; }, True) ); } ?>