getVersion('yash')). '\n"; } public static function coreInitWikiPost($wiki2xhtml) { $wiki2xhtml->registerFunction('macro:yash3',array('yashBehaviors','transform')); } public static function transform($text,$args) { $text = trim($text); $real_args = explode(' ',$args); $class = empty($real_args[1])?'plain':$real_args[1]; return '
'.htmlspecialchars($text).'
'; } }