From 3fcc0734f24bb48e537163bc903bd13a31d14b5f Mon Sep 17 00:00:00 2001 From: Anil Maurya Date: Fri, 3 Jul 2015 21:39:27 +0530 Subject: [PATCH] Use text() method to get textarea value instead html() method because ember 1.7 add script tag around textarea --- src/jquery.editable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.editable.js b/src/jquery.editable.js index 1a675a8..4ffafcf 100644 --- a/src/jquery.editable.js +++ b/src/jquery.editable.js @@ -31,7 +31,7 @@ if(trigger !== target) trigger.hide(); var old_value = ( type === 'textarea' ? - target.html().replace(//gm, '\n').replace(/>/gm, '>').replace(/</gm, '<') : + target.text().replace(//gm, '\n').replace(/>/gm, '>').replace(/</gm, '<') : target.text() ).replace(/^\s+/,'').replace(/\s+$/,'');