How to decode HTML entities for XHTML application?
For example, $("<div/>").html("·").text()
will raise an JavaScript error.
Error is:
[Exception... "An invalid or illegal string was specified" code: "12" nsresult: "0x8053000c (SyntaxError)"
EDIT: XHTML means real XHTML application, with application/xhtml+xml
Content-type.