diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-01-16 03:14:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-16 03:14:10 +0300 |
commit | 40f7b6e2c162bd95f67f8cdc502cc7f5a04f1f89 (patch) | |
tree | 9a95d0fa7c818eb59a8b402d4f271c6dc0d60047 /plugins/Morpheus | |
parent | 5356ead2444a2f7ac0effb4b4f60301c214b27e1 (diff) |
Use a temp textarea instead of a div. (#13965)
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r-- | plugins/Morpheus/javascripts/piwikHelper.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Morpheus/javascripts/piwikHelper.js b/plugins/Morpheus/javascripts/piwikHelper.js index 439da99801..88ad501881 100644 --- a/plugins/Morpheus/javascripts/piwikHelper.js +++ b/plugins/Morpheus/javascripts/piwikHelper.js @@ -24,7 +24,9 @@ var piwikHelper = { htmlDecode: function(value) { - return $('<div/>').html(value).text(); + var textArea = document.createElement('textarea'); + textArea.innerHTML = value; + return textArea.value; }, sendContentAsDownload: function (filename, content, mimeType) { |