Click here to Skip to main content
15,890,185 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a data (This is a <TestMe>) in the database. Need to write to the file.
After using html_entity_decode() i could get proper value seen in the UI but when i write to file it is written as (This is a & lt ;TestMe & gt ; ).
Deliberately to type this question i have put space to show html entities.

any API in PHP which will capture the proper text.

Thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 28-Nov-14 11:49am    
Let me tell you: a format of CodeProject question is also HTML. If you knew HTML, you could easily type HTML sample not using artificial spaces, the correct way: &lt; &gt, '<', '>', and so on. If you have problem with it, how can you do PHP programming? Learn it all, which is easy, and then learn programming. Let me also ask you: okay, you screwed up something, not a big deal, but how can we see where your bug is? Due to today's snow, my access to your hard drive is somewhat limited...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900