published by | Adam Johnson |
---|---|
in blog | Adam Johnson |
original entry | How to Safely Pass Data to JavaScript in a Django Template |
You want to pass your data from your Django view to JavaScript, in your template. And, you want to do it securely, with no risk of accidentally allowing malicious code injection. Great, this is the post for you!
We’re going to look at the problems with templating JavaScript, then …