diff --git a/files/en-us/web/security/attacks/xss/index.md b/files/en-us/web/security/attacks/xss/index.md index c3066f22a4d91ae..87fd9e359e95fd7 100644 --- a/files/en-us/web/security/attacks/xss/index.md +++ b/files/en-us/web/security/attacks/xss/index.md @@ -154,7 +154,19 @@ This is the appropriate choice when you want to treat input as text, for example

You searched for \{{ search_term }}.

``` -Most modern templating engines automatically perform output encoding. For example, if you pass `` into the Django template above, it will be rendered as text: +Most modern templating engines automatically perform output encoding. For example, Django's templating engine performs the following conversions: + +- `<` is converted to `<` + +- `>` is converted to `>` + +- `'` is converted to `'` + +- `"` is converted to `"` + +- `&` is converted to `&` + +This means that if you pass `` into the Django template above, it will be rendered as text: > You searched for <img src=x onerror=alert('XSS!')>.