protected function _checkAttribute($attrSubSet)
    {
        $attrSubSet[0] = strtolower($attrSubSet[0]);
        $attrSubSet[1] = strtolower($attrSubSet[1]);
        return (((strpos($attrSubSet[1], 'expression') !== false) && ($attrSubSet[0]) == 'style') || (strpos($attrSubSet[1], 'javascript:') !== false) || (strpos($attrSubSet[1], 'behaviour:') !== false) || (strpos($attrSubSet[1], 'vbscript:') !== false) || (strpos($attrSubSet[1], 'mocha:') !== false) || (strpos($attrSubSet[1], 'livescript:') !== false));
    }
protected function _checkAttribute($attrSubSet)
    {
        $attrSubSet[0] = strtolower($attrSubSet[0]);
        $attrSubSet[1] = strtolower($attrSubSet[1]);
        return (((strpos($attrSubSet[1], 'expression') !== false) && ($attrSubSet[0]) == 'style') || (strpos($attrSubSet[1], 'javascript:') !== false) || (strpos($attrSubSet[1], 'behaviour:') !== false) || (strpos($attrSubSet[1], 'vbscript:') !== false) || (strpos($attrSubSet[1], 'mocha:') !== false) || (strpos($attrSubSet[1], 'livescript:') !== false));
    }
protected function _checkAttribute ( $ attrSubSet ) { $ attrSubSet [ 0 ] = strtolower ( $ attrSubSet [ 0 ] ) ; $ attrSubSet [ 1 ] = strtolower ( $ attrSubSet [ 1 ] ) ; return ( ( ( strpos ( $ attrSubSet [ 1 ] , 'expression' ) !== false ) && ( $ attrSubSet [ 0 ] ) == 'style' ) || ( strpos ( $ attrSubSet [ 1 ] , 'javascript:' ) !== false ) || ( strpos ( $ attrSubSet [ 1 ] , 'behaviour:' ) !== false ) || ( strpos ( $ attrSubSet [ 1 ] , 'vbscript:' ) !== false ) || ( strpos ( $ attrSubSet [ 1 ] , 'mocha:' ) !== false ) || ( strpos ( $ attrSubSet [ 1 ] , 'livescript:' ) !== false ) ) ; }
Function to determine if contents of an attribute is safe

@param   array   $attrSubSet A 2 element array for attributes name,value
@return  boolean True if bad code is detected
Function to determine if contents of an attribute is safe