Take a look at the following code:
$ ('# el'). html ('ex & shy; am & shy; ple');
Now, how can I return this element text with soft suffixes? Both of these:
$ ('# el'). html ();
$ ('# el'). contents (). get (0) .nodeValue;
gives me an "example" as the return value, not "ex & shy; am & shy; ple"
jsFiddle link: http://jsfiddle.net/w7QKH/
Browser: FF7 not marked in other browsers.
source share