Skip to content
All lessons

Tech Insights· adamj.eu

Safely Including Data for JavaScript in a Django Template

From adamj.eu

Django templates are often used to pass data to JavaScript code. Unfortunately, if implemented incorrectly, this opens up the possibility of HTML injection, and thus XSS (Cross-Site Scripting) attacks.

Shared by

Read on adamj.eu
  • Django
  • Security

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us