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

filterAttributes() protected method

Attribute filtering.
protected filterAttributes ( string $str ) : string
$str string
return string
    protected function filterAttributes($str)
    {
        $out = '';
        if (preg_match_all('#\\s*[a-z\\-]+\\s*=\\s*(\\042|\\047)([^\\1]*?)\\1#is', $str, $matches)) {
            foreach ($matches[0] as $match) {
                $out .= preg_replace('#/\\*.*?\\*/#s', '', $match);
            }
        }
        return $out;
    }