- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/general/textparser.php
- Класс: CTextParser
- Вызов: CTextParser::convertCode
public function convertCode($matches)
{
$text = $matches[2];
if ($text == '')
{
return '';
}
$text = str_replace(
["[nomodify]", "[/nomodify]", "[", "]", "&", "<", ">", "\r", "\n", "\"", "\", "[", "]", " ", "t"],
["", "", "[", "]", "&", "<", ">", "\r", "\n", '\"', "\", "[", "]", " ", " "],
$text
);
$text = stripslashes($text);
return $this->defended_tags($this->convert_open_tag('code') . "" . $text . "
" . $this->convert_close_tag('code'));
}