original_string: public function filter($varname)
      {
          $val = $this->$varname;
  
          if (is_null($val) || $this->_sanitized) {
              return $val;
          }
  
          return is_array($val)
              ? filter_var_array($val, FILTER_SANITIZE_STRING)
              : filter_var($val, FILTER_SANITIZE_STRING);
      }
code: public function filter($varname)
      {
          $val = $this->$varname;
  
          if (is_null($val) || $this->_sanitized) {
              return $val;
          }
  
          return is_array($val)
              ? filter_var_array($val, FILTER_SANITIZE_STRING)
              : filter_var($val, FILTER_SANITIZE_STRING);
      }
code_tokens: public function filter ( $ varname ) { $ val = $ this -> $ varname ; if ( is_null ( $ val ) || $ this -> _sanitized ) { return $ val ; } return is_array ( $ val ) ? filter_var_array ( $ val , FILTER_SANITIZE_STRING ) : filter_var ( $ val , FILTER_SANITIZE_STRING ) ; }
docstring: Filters a form value so that it can be used in HTML output.
  
  @param string $varname  The form variable name.
  
  @return mixed  The filtered variable, or null if it doesn't exist.
docstring_tokens: Filters a form value so that it can be used in HTML output .