function fixAnnoyingCharacters($html) { // Replace Non-breaking spaces with normal spaces $html = preg_replace('/\\xC2\\xA0/', ' ', $html); return $html; }