41 if (!$html || !is_string($html))
46 $html = preg_replace(
'/<(script|iframe)(.*?)>(.*?)(<\\/\\1.*?>)/is',
'', $html);
47 if (Loader::includeModule(
'fileman'))
50 Loader::includeModule(
'security')
51 && !Fileman\
Block\Editor::isContentSupported($html)
55 $sanitizer = new \Bitrix\Security\Filter\Auditor\SimpleXss();
56 if ($sanitizer->process($html))
58 $html = $sanitizer->getFilteredValue();