How Would I Apply htmlentities() To Every Array Item
View Single Post
01-09-2009, 02:42 AM
Join Date: Jan 2009
Originally Posted by
I don't understand your question, drolex. It is possible to use them, but for what purpose? What do you want to achieve?
The default quotestyle is ENT_COMPAT which only encodes double quotes. I think I need ENT_QUOTES which will also encode single quotes. I wanted to use character set "UTF-8" because everything else is UTF-8, and the default for htmlentities is ISO-8859-1 - Western European.
I have a database that stores descriptions for things. The user often enters descriptions containing quotes. All quotes and symbols need to be converted to html entities so the description can be show and not mess up the rest of the page. I want to store the descriptions pre-encoded so it doesn't have to use extra process cycles everytime the page is shown.
View Public Profile
Send a private message to drolex
Find More Posts by drolex