<?
$parser = new textParser("ru", "/bitrix/images/forum/smile/");
$arAllow["HTML"] = "Y";
$arAllow["ANCHOR"] = "Y";
$arAllow["BIU"] = "Y";
$arAllow["IMG"] = "Y";
$arAllow["QUOTE"] = "Y";
$arAllow["CODE"] = "Y";
$arAllow["FONT"] = "Y";
$arAllow["LIST"] = "Y";
$arAllow["SMILES"] = "Y";
$arAllow["NL2BR"] = "Y";
$text="[B]Проверка жирным[/B] картинка [IMG]http://static.kanobu.ru/kanobu/modern/upload/blog/9734/resize/e5409b3d-ab27-4987-b6ed-69836b893a4c_120x0_q99.jpg[/IMG] и просто текст";
echo $parser->convert($text, $arAllow);
?> |