I am reading data from a json file and the titles of the key/value pairs are appearing with html entities such as ®/& etc. Although the browser should convert these on the fly but I guess the way I am reading the json document through jquery, it does not do it.
So instead of giving me symbols for these, it is actually displaying the ® etc. how do i correct this?
Don’t handle them as plain text: handle them as HTML. In jQuery, that normally implies using
.html()rather than.text()or.val().