// per qualche ragione la funzione html_entities_decode() non converte alcuni entità html // uso quindi questa funzione function convert_smart_quotes($string) { $search = array('‘', '’', '“', '”', '—', '–'); $replace = array( "'", "'", '"', '"', '-', '-'); return str_replace($search, $replace, $string); } // fine funzione ?>
|