summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/InlineHistory/web/inline-history.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/InlineHistory/web/inline-history.js b/extensions/InlineHistory/web/inline-history.js
index c4930e15b..e07872c9e 100644
--- a/extensions/InlineHistory/web/inline-history.js
+++ b/extensions/InlineHistory/web/inline-history.js
@@ -373,9 +373,9 @@ var inline_history = {
},
htmlDecode: function(v) {
- var e = document.createElement('div');
+ var e = document.createElement('textarea');
e.innerHTML = v;
- return e.childNodes.length == 0 ? '' : e.childNodes[0].nodeValue;
+ return e.value;
},
trim: function(s) {