From my API I get a json object with data. The special data is converted to HTML entities (using htmlspecialchars). Looks like this:
{
id: "0",
title: "Hello & good day",
}
However, when i fetch the data using $.getJSON, and insert the data into the input value, the &
is still there.
How can I avoid this?