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? Quote Link to comment 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"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.