html_entity_decode();
Tam tersi için;

htmlspecialchars();
Boşlukları vs'de katmak için;

htmlentities();