Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mohamedali-s-4725/4064995b34b881af417e5588ee1bc2cd to your computer and use it in GitHub Desktop.
Save mohamedali-s-4725/4064995b34b881af417e5588ee1bc2cd to your computer and use it in GitHub Desktop.
Triple curley
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
commentText:'&lt; &gt; &amp; <a href=""> SMA </a>',
imgTag: "'><img src=s onerror=alert()>"
});
<h1>Use of Double & Triple curly brackets</h1>
<br><hr><br>
<h2>Double curly</h2><br>
{{commentText}}
{{imgTag}}
<br>
<br>
<br>
<br>
<h2>Triple curly</h2><br>
{{{commentText}}}
{{{imgTag}}}
<br>
<br>
{
"version": "0.13.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.16.2",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-data": "2.16.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment