Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 938 Bytes

File metadata and controls

29 lines (19 loc) · 938 Bytes

ember/template-no-triple-curlies

💼 This rule is enabled in the 📋 template-lint-migration config.

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:

<template>
  {{{foo}}}
</template>

This rule allows the following:

<template>
  {{foo}}
</template>

References