grazie x l'aiuto,
con html_entity_decode($var) sono riuscito a fare quello che volevo