1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Sanitizer

Открытые статические члены

static sanitizeHtml ($html, $previousHtml='', User $user=null)
static cleanHtml ($html)
static fixReplacedStyles ($html)
static fixTemplateStyles ($html)
static removePhp ($string='', $previousString, User $user=null)

Подробное описание

См. определение в файле sanitizer.php строка 17

Методы

◆ cleanHtml()

cleanHtml ( $html)
static

Clean html.

Аргументы
string$htmlHtml text.
Возвращает
string|null

См. определение в файле sanitizer.php строка 39

◆ fixReplacedStyles()

fixReplacedStyles ( $html)
static

Fix replaced style tags and attributes.

Аргументы
string$htmlHtml text.
Возвращает
string|null

См. определение в файле sanitizer.php строка 76

◆ fixTemplateStyles()

fixTemplateStyles ( $html)
static

Fix template styles.

Аргументы
string$htmlHtml text.
Возвращает
string|null

См. определение в файле sanitizer.php строка 107

◆ removePhp()

removePhp ( $string = '',
$previousString,
User $user = null )
static

Remove php from string with checking operations edit_php and lpa_template_edit

Аргументы
string$stringString.
User$userUser instance.
Возвращает
bool

См. определение в файле sanitizer.php строка 130

◆ sanitizeHtml()

sanitizeHtml ( $html,
$previousHtml = '',
User $user = null )
static

Clean html.

Аргументы
string$htmlHtml text.
string$previousHtmlPrevious html text.
User$userUser instance.
Возвращает
string|null

См. определение в файле sanitizer.php строка 27


Объявления и описания членов класса находятся в файле: