Microweber\Utils\lib\XSSSecurity::sanitizeNaughtyHtml PHP Method

sanitizeNaughtyHtml() protected method

Sanitize naughty html.
protected sanitizeNaughtyHtml ( array $matches ) : string
$matches array
return string
    protected function sanitizeNaughtyHtml($matches)
    {
        return '&lt;' . $matches[1] . $matches[2] . $matches[3] . str_replace(['>', '<'], ['&gt;', '&lt;'], $matches[4]);
    }