When data is embedded in HTML documents, special characters are resented in HTML entities to protect them from being interpreted by browsers. If you need them back, you can use the html_entity_decode() to convert them This page allows you to learn and test the html_entity_decode() function to convert HTML entities.
What are HTML entities?
HTML entities are escape sequences to represent special characters in HTML documents. For example:
How to use and test html_entity_decode() PHP function?
html_entity_decode(string) returns the input string with all HTML entities converted back to characters.
To help you learn and test html_entity_decode() function, FYIcenter.com has designed this online testing page. All you need to do is to enter the testing string in the form below and click the Start button. The converted string will be presented in the result area.
Other On-line Testing Pages by FYIcenter.com
FYIcenter.com has prepared some simple but very interesting on-line testing pages that are useful for your programming and testing tasks:
Each tutorial answers one commonly asked PHP programming question with a short, but precise and clear PHP script.