Eric,
Originally posted by Eric Pascarello:
Escape the & to & one more time before you set it to innerHTML.
I noticed that not EVERY encoded character gets treated in the same manner.
Funnily enough the & isn't being translated to a & grrr... it just keeps the & in the text *sighs*...
And even if IE would support ' it would probably still not do the right thing...
When I enter ' in FF it STILL gets translated into a literal character... this is getting annoying like hell...
Why can't I simply set the innerHTML without it screwing up my code?
The browsers are converting data (when setting innerHTML) before it gets converted again (when it gets rendered)...
It should leave my data alone and let the rendering part take care of the encoded characters...
I am kind of giving up now, cause the problem is getting worse...
And personally I don't think there's going to be an easy way of fixing this. I think I'll just replace the "straight single quote" ('
into a "right single quotation mark" (’ or &rsquo
Some people are calling that quotation mark an apostrophe, but let's face it... it isn't... They didn't call it right single quotation mark" for nothing. Last but not least, you try and enter that char from your keyboard (without using alt) hahaha
Thanks again,
Rory