Link to home
Start Free TrialLog in
Avatar of juststeve
juststeve

asked on

Rendering the apostrophe

I'm working with database-driven content where the html-encoded text in the db is rendered both by IE and by Flash. Best practices for db storage of html content  is to escape the apostrophe, the ampersand and the double quote. The html table i'm working off have me using ' & and " respectively.

All these render in Flash correctly but in IE the ' is not...the code is spelled out. E.G. Steve's will display as Steve's. The & and the " work as expected.

Is there an alternate html code to use?

thx
--steve...
Avatar of sajuks
sajuks

In asp it is
myfield  = unescape("<%= Server.URLEncode(myfield )%>");
Whats ur server side scriping land?
for jsp u've
myfield = unescape("<%= java.net.urlEncode.encode(myfield)%>");

Avatar of juststeve

ASKER

Server-side is asp.net but that's not the issue...the data is in the db correctly...Flash recognizes it - IE doesn't.
If the value is stored as Steve's in ur db thne using the unescape fn should work for u
Check http://www.javascripter.net/faq/unescape.htm for ref
ASKER CERTIFIED SOLUTION
Avatar of GrandSchtroumpf
GrandSchtroumpf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial