I used ajax to download a JSON file from the internet, then set one of the keys to a variable. How do I get the contents of that variable inside a div tag? I could do:
theJsonKey = jsonObject.key;
document.getElementById('theDivTag').innerHTML = theJsonKey;
But that doesn't seem safe since someone could put scripts or html in the JSON file.