• Модуль: forum
  • Путь к файлу: ~/bitrix/modules/forum/classes/general/functions.php
  • Класс: CForumSimpleHTMLParser
  • Вызов: CForumSimpleHTMLParser::prepare
private function prepare(string $text): string
{
	$text = preg_replace_callback(
		"/
(.+?)<\/pre>/is".BX_UTF_PCRE_MODIFIER,
		[$this, "defendTags"],
		$text
	);
	$text = str_replace(["rn", "n", "t"], "", $text);
	$text = str_replace($this->preg["pattern"], $this->preg["replace"], $text);
	$this->preg["pattern"] = array();
	$this->preg["replace"] = array();
	return $text;
}