Quote:
Originally Posted by Geoserv Change: Code: if(preg_match("'<title>([^<]*?)</title>'", $this->html, $matches)) {
$url_title=trim($matches[1]);
$url_title = preg_split("/:|»\-/", $url_title);
$url_title = array_slice($url_title, -1);
$this->url_title = $url_title[0];
}
to: Code: if( preg_match( '~<title>(.*?)([^:\-]*?)</title>~is', str_replace( '»', ':', $this->html ), $matches ) )
{
$this->url_title = $matches[2];
}
and that will fix them all.
Geoserv. |
Seems to be working Geoserv thanks a lot