2 ms·
I may be mistaken, but I'm reasonably sure with respect to XSS (in HTML templates anyway), the built-in html/template autoescapes provided parameters by default
by masklinn 11y ago
I may be mistaken, but I'm reasonably sure with respect to XSS (in HTML templates anyway), the built-in html/template autoescapes provided parameters by default, much as Django templates do.
You have to mark "trusted" or "pre-escaped" parameters explicitly by wrapping them in e.g. `template.HTML`.