Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 686 Bytes

no-triple-curlies.md

File metadata and controls

19 lines (12 loc) · 686 Bytes

no-triple-curlies

Usage of triple curly braces to allow raw HTML to be injected into the DOM is a large vector for exploits of your application (especially when the raw HTML is user-controllable). Instead of using {{{foo}}}, you should use appropriate helpers or computed properties that return a SafeString (via Ember.String.htmlSafe generally) and ensure that user-supplied data is properly escaped.

This rule forbids the following:

{{{foo}}}

This rule allows the following:

{{foo}}

References