protected function _sanitize($value)
    {
        //Tidy is not installed, return the input
        if ($tidy = $this->getTidy($value)) {
            if ($tidy->cleanRepair()) {
                $value = (string) $tidy;
            }
        }

        return $value;
    }
protected function _sanitize($value)
    {
        //Tidy is not installed, return the input
        if ($tidy = $this->getTidy($value)) {
            if ($tidy->cleanRepair()) {
                $value = (string) $tidy;
            }
        }

        return $value;
    }
protected function _sanitize ( $ value ) { //Tidy is not installed, return the input if ( $ tidy = $ this -> getTidy ( $ value ) ) { if ( $ tidy -> cleanRepair ( ) ) { $ value = ( string ) $ tidy ; } } return $ value ; }
Sanitize a variable

@param   scalar  Value to be sanitized
@return  string
Sanitize a variable