/** * @deprecated For compability only will be erased next versions */ public static function Sanitize($html, $secLevel = 'HIGH', $htmlspecialchars = true, $delTags = true) { $Sanitizer = new self(); if (empty(self::$arOldTags)) { $Sanitizer->SetLevel(self::SECURE_LEVEL_HIGH); } else { $Sanitizer->DelAllTags(); $Sanitizer->AddTags(self::$arOldTags); } $Sanitizer->ApplyHtmlSpecChars($htmlspecialchars); $Sanitizer->DeleteSanitizedTags($delTags); $Sanitizer->ApplyDoubleEncode(); return $Sanitizer->SanitizeHtml($html); }