Commit b77fe6b9 authored by Sindre Sorhus's avatar Sindre Sorhus

Merge pull request #177 from everett-sochowski/html_escaping

Html escaping
parents ec1c9a36 a36303dc
......@@ -33,7 +33,7 @@
<script type="text/template" id="item-template">
<div class="view">
<input class="toggle" type="checkbox" <%- done ? 'checked="checked"' : '' %> />
<input class="toggle" type="checkbox" <%= done ? 'checked="checked"' : '' %> />
<label><%- title %></label>
<button class="destroy"></button>
</div>
......@@ -42,7 +42,7 @@
<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>
......@@ -55,7 +55,7 @@
</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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment