private function sanitizeForTease($string)
    {
        $string = trim($string);

        //remove html
        $string = strip_tags($string);

        //replace multiple spaces
        $string = preg_replace("/\s+/", ' ', $string);

        return $string;
    }
private function sanitizeForTease($string)
    {
        $string = trim($string);

        //remove html
        $string = strip_tags($string);

        //replace multiple spaces
        $string = preg_replace("/\s+/", ' ', $string);

        return $string;
    }
private function sanitizeForTease ( $ string ) { $ string = trim ( $ string ) ; //remove html $ string = strip_tags ( $ string ) ; //replace multiple spaces $ string = preg_replace ( "/\s+/" , ' ' , $ string ) ; return $ string ; }
Sanitize the string for teasing.

@param $string

@return string
Sanitize the string for teasing .