Jump to content

htmlentities and htmlentitiesdecode


seco

Recommended Posts

Hi

i have a code get it from the web to draw a menu and it uses htmlentities function and convert the character to html chars instead !! and i remove it and my chars appeas now well so

what is the importance of these functions

i read php.net but don't know any applicable thing for them

does any one use them for something useful before? i remove it and nothing happen.

 

thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/91082-htmlentities-and-htmlentitiesdecode/
Share on other sites

You may not want to store the actual symbol in a database, some foreign lettering for example are sometimes better off storing their htmlentities equivalent rather than the symbol itself.  Then you can use the decode method to retrieve the symbol.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.