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+$/,'');