Skip to content
RED SAG Skills
medium10 pts · first answer countsweb-securityxss

User data inside a script block

A server template puts user data into an inline script like this. Why is HTML-escaping alone not enough?

<script>
  const city = "{{ city }}";
</script>
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions