Adding note about avoiding XSS problems

Closes #91
This commit is contained in:
Ryan Weaver 2020-04-15 09:55:14 -04:00 committed by GitHub
parent 7238cc264e
commit d575814dd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,11 @@ In Twig, you can use the `markdown` filter:
{# Use default parser #}
{{ my_data|markdown }}
{# If my_data is entered by a user, escape HTML tags before printing it #}
{{ my_data|escape|markdown }}
{# or strip HTML tags #}
{{ my_data|striptags|markdown }}
{# Or select specific parser #}
{{ my_data|markdown('parserName') }}
```