tera
tera copied to clipboard
escape_html: use literal forward slash
Forward slash is not a reserved HTML character, and most major implementations do not encode it.
Fixes #567
This is following OWASP recommendations (https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html#rule-1-html-encode-before-inserting-untrusted-data-into-html-element-content) and I don't think escaping it breaks anything
Thanks, I'll merge it for the next major version