public function setDescription($description)
    {
        $stripURLRegex = "/((?<!=\")(http|ftp)+(s)?:\/\/[^<>()\s]+)/i";
        $description = preg_replace($stripURLRegex, '', $description);
        $description = strip_tags($description);
        $description = htmlentities($description);
        $description = str_replace(array('#', '@'), '', $description);
        $description = AnService::get('com:base.template.helper.text')->truncate($description, array('length' => 160));
        $description = trim($description);

        $this->_description = $description;
	}
public function setDescription($description)
    {
        $stripURLRegex = "/((?<!=\")(http|ftp)+(s)?:\/\/[^<>()\s]+)/i";
        $description = preg_replace($stripURLRegex, '', $description);
        $description = strip_tags($description);
        $description = htmlentities($description);
        $description = str_replace(array('#', '@'), '', $description);
        $description = AnService::get('com:base.template.helper.text')->truncate($description, array('length' => 160));
        $description = trim($description);

        $this->_description = $description;
	}
public function setDescription ( $ description ) { $ stripURLRegex = "/((?<!=\")(http|ftp)+(s)?:\/\/[^<>()\s]+)/i" ; $ description = preg_replace ( $ stripURLRegex , '' , $ description ) ; $ description = strip_tags ( $ description ) ; $ description = htmlentities ( $ description ) ; $ description = str_replace ( array ( '#' , '@' ) , '' , $ description ) ; $ description = AnService :: get ( 'com:base.template.helper.text' ) -> truncate ( $ description , array ( 'length' => 160 ) ) ; $ description = trim ( $ description ) ; $ this -> _description = $ description ; }
Sets the description of the document

@param	string	$title
@access   public
Sets the description of the document