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

jsImgRemoval() protected method

JS image removal.
protected jsImgRemoval ( array $match ) : string
$match array
return string
    protected function jsImgRemoval($match)
    {
        return str_replace($match[1], preg_replace('#src=.*?(?:(?:alert|prompt|confirm)(?:\\(|&\\#40;)|javascript:|livescript:|mocha:|charset=|window\\.|document\\.|\\.cookie|<script|<xss|base64\\s*,)#si', '', $this->filterAttributes(str_replace(['<', '>'], '', $match[1]))), $match[0]);
    }