htmlentities()
Posted: Sun Apr 30, 2006 6:32 am
Hi
I am having problems with htmlentitites() and am hoping someone can offer me advice.
Basically, I'm developing an application to take mySQL data and present it on a web page using a table, the problem I have is with converting special characters such as a quote to their ASCII equivalent. The data looks fine on the web but it isn't valid XHTML because it doesn't use proper ASCII codes.
Example: Don't order with this supplier
Should be translated to: Don't order with this supplier
I've tried using htmlentities but it doesn't make any difference.
The code I'm using is htmlentities($row['suppliercomments'], ENT_QUOTES)
Does anyone have any advice?
Thanks
I am having problems with htmlentitites() and am hoping someone can offer me advice.
Basically, I'm developing an application to take mySQL data and present it on a web page using a table, the problem I have is with converting special characters such as a quote to their ASCII equivalent. The data looks fine on the web but it isn't valid XHTML because it doesn't use proper ASCII codes.
Example: Don't order with this supplier
Should be translated to: Don't order with this supplier
I've tried using htmlentities but it doesn't make any difference.
The code I'm using is htmlentities($row['suppliercomments'], ENT_QUOTES)
Does anyone have any advice?
Thanks