1.3.0
UnsafeUnescapedLeafTag
to avoid your rendered strings from escaping. No other changes are required.
This release fixes a potential XSS vulnerability in LeafKit. Before Leaf would render any parameters passed to any tags without escaping any HTML allowing an attacker to inject malicious scripts. All tags built into LeafKit now escape any rendered strings, apart from the new unsafeHTML
tag.
- Introduces a new
unsafeHTML
for rendering parameters you trust that contain HTML you want to leave intact - Introduces
UnsafeUnescapedLeafTag
to conform custom tags to that won't escape any HTML.