[Fixed]-Passing a string to a template that has d3.js tree within a Django app

1👍

Django escapes it. If you are sure about your json content you can use

var treeData = [
  {
   {{ json_string|safe }}
  }
];
👤pythad

Leave a comment