Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 777 Bytes

no-triple-curlies.md

File metadata and controls

23 lines (14 loc) · 777 Bytes

no-triple-curlies

✅ The extends: 'recommended' property in a configuration file enables this rule.

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.

Examples

This rule forbids the following:

{{{foo}}}

This rule allows the following:

{{foo}}

References