Omzy Posted May 24, 2009 Share Posted May 24, 2009 I've got a script which first reads in raw XML data and then writes this data to a CSV file. However it doesn't seem to be converting the HTML entities back to their original characters, so for example it writes ' where there should be an apostrophe. So I inserted the html_entity_decode function as follows: fwrite($fp, ".html_entity_decode($data)."\n"); But that does not make any difference. Anybody have any ideas how I got about this? Link to comment https://forums.phpfreaks.com/topic/159505-solved-fwrite-and-html_entity_decode/ Share on other sites More sharing options...
Omzy Posted May 24, 2009 Author Share Posted May 24, 2009 I just fixed it... fwrite($fp, ".html_entity_decode($data, ENT_QUOTES)."\n"); Link to comment https://forums.phpfreaks.com/topic/159505-solved-fwrite-and-html_entity_decode/#findComment-841376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.