src/Cleaner.php
public function getString($variable, $default = '', $allowed = "", $escape = true)
    {
        return (string) strip_tags($this->getHtml($variable, $default, $allowed, $escape));
    }
public function getString($variable, $default = '', $allowed = "", $escape = true)
    {
        return (string) strip_tags($this->getHtml($variable, $default, $allowed, $escape));
    }
public function getString ( $ variable , $ default = '' , $ allowed = "" , $ escape = true ) { return ( string ) strip_tags ( $ this -> getHtml ( $ variable , $ default , $ allowed , $ escape ) ) ; }
Same as _getHtml, but it also strips tags

@param mixed $variable - variable
@param mixed $default - default value if variable not set
@param mixed $allowed - array of allowed values
@param bool $escape - escape quotes
@return string
Same as _getHtml but it also strips tags