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...
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...
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
Check http://www.javascripter.net/faq/unescape.htm for ref
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
myfield = unescape("<%= Server.URLEncode(myfield )%>");
Whats ur server side scriping land?
for jsp u've
myfield = unescape("<%= java.net.urlEncode.encode(