Commit 18b7f452 authored by Clarence Leung's avatar Clarence Leung

Fix for double HTML escaping in YUI.

parent 8d3747e0
...@@ -123,7 +123,7 @@ YUI.add('todo-app', function (Y) { ...@@ -123,7 +123,7 @@ YUI.add('todo-app', function (Y) {
var ENTER_KEY = 13; var ENTER_KEY = 13;
var todoList = this.get('todoList'); var todoList = this.get('todoList');
var inputNode = this.get('inputNode'); var inputNode = this.get('inputNode');
var value = Y.Escape.html(Y.Lang.trim(inputNode.get('value'))); var value = inputNode.get('value');
if (e.keyCode !== ENTER_KEY || !value) { if (e.keyCode !== ENTER_KEY || !value) {
return; return;
......
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