• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/util.php
  • Класс: BitrixTasksUtil
  • Вызов: Util::escape
static function escape($arg)
{
	if(is_array($arg))
	{
		foreach($arg as $i => $value)
		{
			$arg[$i] = static::escape($value);
		}

		return $arg;
	}
	else
	{
		if(is_numeric($arg) && !is_string($arg))
		{
			return $arg;
		}
		else
		{
			return htmlspecialcharsbx($arg);
		}
	}
}