- Модуль: socialnetwork
- Путь к файлу: ~/bitrix/modules/socialnetwork/classes/general/functions.php
- Класс: CSocNetTextParser
- Вызов: CSocNetTextParser::convert_quote_tag
function convert_quote_tag($text = "", $type = "html")
{
if ($text == '') return;
$txt = $text;
$type = ($type == "rss" ? "rss" : "html");
$this->matchType = 'quote';
$this->matchType2 = $type;
$txt = preg_replace_callback(
"/[quote([^]])*]/i".BX_UTF_PCRE_MODIFIER,
array($this, "convert_open_tag_callback"),
$txt
);
$this->matchType = 'quote';
$txt = preg_replace_callback(
"/[/quote([^]])*]/i".BX_UTF_PCRE_MODIFIER,
array($this, "convert_close_tag_callback"),
$txt
);
if (
($this->quote_open == $this->quote_closed)
&& ($this->quote_error == 0)
)
{
return $txt;
}
return $text;
}