Open cedricdcc opened 3 weeks ago
https://github.com/vliz-be-opsci/py-sema/blob/5ab22eca687e55c8665fe09cd36bd85495798483/sema/subyt/j2/generator.py#L23-L40 includes all the extensions that will automatically not apply html escaping to the various template expansions.
Files ext not in that list will typically require manually adding | safe statements to avoid HTML escaping. This can be avoided.
| safe
Various routes to go:
"autoescape":False
Linked to https://github.com/emo-bon/observatory-profile/blob/main/templates/water_sampling.ldt.ttl.j2 Where | safe is used in all filters.
according to https://codeql.github.com/codeql-query-help/python/py-jinja2-autoescape-false/
"autoescape": False
https://github.com/vliz-be-opsci/py-sema/blob/5ab22eca687e55c8665fe09cd36bd85495798483/sema/subyt/j2/generator.py#L23-L40 includes all the extensions that will automatically not apply html escaping to the various template expansions.
Files ext not in that list will typically require manually adding
| safe
statements to avoid HTML escaping. This can be avoided.Various routes to go:
"autoescape":False
?Linked to https://github.com/emo-bon/observatory-profile/blob/main/templates/water_sampling.ldt.ttl.j2 Where | safe is used in all filters.