[javascript] How to remove " from my Json in javascript?

I am trying to inject json into my backbone.js app. My json has " for every quote.

Is there a way for me to remove this?
I've provided a sample below:


This question is related to javascript

The answer is

i used replace feature in Notepad++ and replaced " (without quotes) with " and result was valid json

var data = $('<div>').html('[{&quot;Id&quot;:1,&quot;Name&quot;:&quot;Name}]')[0].textContent;

that should parse all the encoded values you need.

The following works for me:

function decodeHtml(html) {
    let areaElement = document.createElement("textarea");
    areaElement.innerHTML = html;

    return areaElement.value;

Accepted answer is right, however I had a trouble with that. When I add in my code, checking on debugger, I saw that it changes from




Instead of this I use that:


By this notation it works.