how to export to csv containing html code?

Talk about Printing & Exporting Settings

Moderators: ne_moj, zewa

foufoutos
Newbie
Newbie
Posts: 4
Joined: Oct 2nd, '13, 08:20

how to export to csv containing html code?

Postby foufoutos » Oct 3rd, '13, 12:57

how can I include html code as text while exporting a csv file? In my database a field contains html code and I want to export it to csv. Using htmlspecialchars or utf-8_decode will change the output of all other fields, right? What I should get for example is:

"<p><span style="text-decoration: underline;"><em><strong><span style="font-size: small;">&Mu;&Alpha;"

and what I get is : "&Mu;&Alpha;"

any ideas??

Thank you for your time

administrator
Site Admin
Site Admin
Posts: 5939
Joined: Jan 7th, '09, 23:18
Contact:

Re: how to export to csv containing html code?

Postby administrator » Oct 6th, '13, 06:46

Use htmlentities()


Return to “Settings: Printing & Exporting”