• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/classes/general/html_entity.php
  • Класс: CSecurityHtmlEntity
  • Вызов: CSecurityHtmlEntity::decodeString
static function decodeString($pString)
{
	$strY = $pString;
	$str1 = "";
	while($str1 <> $strY)
	{
		$str1 = $strY;
		$strY = self::decode($strY);
		$strY = str_replace("x00", "", $strY);
		$strY = preg_replace("/�+(;|([^d;]))/is", "\2", $strY);
		$strY = preg_replace("/�+(;|([^da-f;]))/is", "\2", $strY);
	}

	return $str1;
}