public function filter($str)
    {
        if (is_array($str)) {
            foreach ($str as $k => $v) {
                $str[$k] = strip_tags($v);
            }

            return $str;
        }

        return strip_tags($str);
    }
public function filter($str)
    {
        if (is_array($str)) {
            foreach ($str as $k => $v) {
                $str[$k] = strip_tags($v);
            }

            return $str;
        }

        return strip_tags($str);
    }
public function filter ( $ str ) { if ( is_array ( $ str ) ) { foreach ( $ str as $ k => $ v ) { $ str [ $ k ] = strip_tags ( $ v ) ; } return $ str ; } return strip_tags ( $ str ) ; }
Clears html tags from source string
@param  string|array $str Source string
@return string       Filtered string
Clears html tags from source string