Closed GoogleCodeExporter closed 9 years ago
I re-read my issue and I omitted exactly what was wrong. Sorry about that.
When I use the above code when the page is produced, any "&" and spaces are
converted
to & and
You can see an example at http://asnew-com.ihostingcentral.com. In the perfume
names, there should be no & but rather "&". Translating to Spanish is pefect.
Thanks,
Dale
Original comment by internet...@prosurplusinc.com
on 26 Mar 2010 at 4:05
The problem is only with translateTextNodes. It's using
document.createTextNode, which
seems to work quite differently from innerHTML, it doesn't recognize html
entities.
I'll see what I can do with it.
Original comment by balazs.endresz
on 26 Mar 2010 at 4:46
Looks like there isn't any general solution to this, only to replace some html
entities with
their unicode equivalents. I think I'll just include this in the next release:
http://blog.stevenlevithan.com/archives/multi-replace#comment-24937
Original comment by balazs.endresz
on 26 Mar 2010 at 5:50
It should be fixed in 1.4.6! Fortunately only just a few characters are
converted to
html entities, so the thing I posted above was not necessary.
Original comment by balazs.endresz
on 27 Mar 2010 at 2:34
Perfect! Thank you for the super fast response to my problem.
Original comment by internet...@prosurplusinc.com
on 27 Mar 2010 at 4:12
Original issue reported on code.google.com by
internet...@prosurplusinc.com
on 23 Mar 2010 at 9:20