title: TemplateSyntaxError: Could not parse some characters:
body: <p>A HTML file we're using in out project is working absolutely fine when ran independently but when inserted into DJANGO, this error occurs (it looks a bit over the top but it seems to be a problem with how JS methods/variables must be written in django?):</p>
  
  <blockquote>
    <p>TemplateSyntaxError at /rpg/play/</p>
    
    <p>Could not parse some characters:</p>
    
    <p>var| a=i.objectName;i.typeName}return function(){function t(t,n,r){var
    i=l.children('[data-name="'+t+'"]'),o=a(n);i.length||(i=e('').appendTo(l)),i.empty().append(""+t+(r?""+r+"":"")+""+a(n)+"");var
    s=l.children();c.text(s.length+"
    Variable"+(1!==s.length?"s":""))}function i(){var
    r=[];l.children().each(function(i,o){o=e(o);var
    s=o.attr("data-name"),u=o.attr("data-value");s.startsWith("TwineScript")||(s
    in
    n.variables?(r.push(s),a(n.variables[s])!==u&amp;&amp;t(s,n.variables[s])):o.remove())});for(var
    i in
    n.variables)i.startsWith("TwineScript")|||r.includes(i)||t(i,n.variables[i])}var
    s=e("Turns: Debug
    View0
    Variables"),u=s.find(".show-invisibles");u.click(function(){e(document.documentElement).toggleClass("debug-mode"),u.toggleClass("enabled")});var
    c=s.find(".show-variables"),l=s.find(".variables");c.click(function(){lc.is(".enabled")?"attr":"removeAttr",c.toggleClass("enabled")});var
    f=s.find("select");f.change(function(e){var
    t=e.target.value,r=t-n.pastLength;0!==r&amp;&amp;(n0>r?"rewind":"fastForward",o.showPassage(n.passage))}),n.on("forward",function(t){var
    r=arguments.length>1&amp;&amp;void
    0!==arguments[1]?arguments[1]:!1,i=n.pastLength;i>1&amp;&amp;f.removeAttr("disabled"),r||(f.children().each(function(t,n){t>=i&amp;&amp;e(n).remove()}),f.append(""+(i+1)+":
    "+t+"").val(i))}).on("back",function(){n.pastLength&lt;=1&amp;&amp;f.attr("disabled"),f.find("[selected]").removeAttr("selected"),f.val(n.pastLength)}).on("load",function(e){f.empty(),fe.length&lt;=1?"attr":"removeAttr",e.forEach(function(e,t){return
    f.append(""+(t+1)+":
    "+e.passage+"")})}),n.on("forward",i).on("back",i),r.on("set",function(e,r,i){(e===n.variables||e.TwineScript_VariableStore)&amp;&amp;t(r,i,e===n.variables?"":e.TwineScript_VariableStoreName)}).on("delete",function(e,t){e===n.variables&amp;&amp;l.find('[data-name="'+t+'"]:not(.temporary)').remove()}),e(document.body).append(s)</p>
  </blockquote>