Closed Raynos closed 4 years ago
The common use case for Tonic.unsafeRawString is to do some kind of repeated template or looping.
Tonic.unsafeRawString
This adds the ability to pass an array of this.html results in another this.html expression.
This covers 16 / 18 or 89% of the use cases of Tonic.unsafeRawString.
The remaining 2 use cases have subtle usage of Tonic.escape to do manual escaping for security that require actual review.
Tonic.escape
r: @heapwolf
Approved in slack.
The common use case for
Tonic.unsafeRawString
is to do some kind of repeated template or looping.This adds the ability to pass an array of this.html results in another this.html expression.
This covers 16 / 18 or 89% of the use cases of
Tonic.unsafeRawString
.The remaining 2 use cases have subtle usage of
Tonic.escape
to do manual escaping for security that require actual review.r: @heapwolf