Skip to content

Commit

Permalink
Merge pull request tastejs#175 from everett-sochowski/html_escaping
Browse files Browse the repository at this point in the history
Html escaping of Backbone underscore template
  • Loading branch information
sindresorhus committed Jun 3, 2012
2 parents c3e6fe2 + f3cb29d commit 365ed27
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions architecture-examples/backbone/index.html
Expand Up @@ -33,16 +33,16 @@ <h1>Todos</h1>

<script type="text/template" id="item-template">
<div class="view">
<input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> />
<label><%= title %></label>
<input class="toggle" type="checkbox" <%- done ? 'checked="checked"' : '' %> />
<label><%- title %></label>
<button class="destroy"></button>
</div>
<input class="edit" type="text" value="<%= title %>" />
<input class="edit" type="text" value="<%- title %>" />
</script>

<script type="text/template" id="stats-template">
<footer id="footer">
<span id="todo-count"><strong><%= remaining %></strong> <%= remaining == 1 ? 'item' : 'items' %> left</span>
<span id="todo-count"><strong><%- remaining %></strong> <%- remaining == 1 ? 'item' : 'items' %> left</span>
<ul id="filters">
<li>
<a class="selected" href="#/">All</a>
Expand All @@ -55,7 +55,7 @@ <h1>Todos</h1>
</li>
</ul>
<% if (done) { %>
<button id="clear-completed">Clear <%= done %> completed <%= done == 1 ? 'item' : 'items' %></button>
<button id="clear-completed">Clear <%- done %> completed <%- done == 1 ? 'item' : 'items' %></button>
<% } %>
</footer>
</script>
Expand Down

0 comments on commit 365ed27

Please sign in to comment.