tags:

views:

148

answers:

9

The system I'm using has a bug dealing with ',is there a html format for '?

Is there a PHP function to look up this ?

+2  A: 

Try this:

'

See it in action (not much to look at): '

Kobi
+9  A: 

There is '.

Take a look at the HTML page on these codes.

monksy
Is there a PHP function for this?
I don't think so, google found this: http://matthewjamestaylor.com/blog/convert-special-characters-to-html-entities-between-code-tags
monksy
+1  A: 

Just as a reference: http://www.asciitable.com/ is always a good help :)

watain
+1  A: 

Here is a reference chart for html special characters:

http://www.mindflip.com/inet/web/htmlchars.html

You can try ' or ‘ for a quote.

Peter Di Cecco
+3  A: 
Kimvais
+1  A: 

You can also to use '

Rubens Farias
A: 

What about htmlentities()?

dfilkovi
No,I tried,it outputs `'`.
+4  A: 
htmlentities ($string, ENT_QUOTES);
K Prime
+1  A: 
Character   Entity Number     Entity Name         Description

   "         "                "          quotation mark

   '         '                '          apostrophe(does not work in IE)  

   &         &                &           ampersand

   <         &#60;                &lt;            less-than

   >         &#62;                &gt;            greater-than
infant programmer
Note that it's only ' that isn't supported as widely.
Ms2ger
I have mentioned it in braces .. that its not supported by IE ..
infant programmer