diff --git a/frontend/.psc-ide-port b/frontend/.psc-ide-port new file mode 100644 index 0000000..6188325 --- /dev/null +++ b/frontend/.psc-ide-port @@ -0,0 +1 @@ +15947 \ No newline at end of file diff --git a/frontend/src/Utils.js b/frontend/src/Utils.js index 6068ffc..477dddd 100644 --- a/frontend/src/Utils.js +++ b/frontend/src/Utils.js @@ -1,8 +1,7 @@ // Module App.BlogEntry -function htmlDecode(input) { - var doc = new DOMParser().parseFromString(input, "text/html"); - return doc.documentElement.textContent; +function htmlDecode(value){ + return $('
').html(value).text(); } exports.mdify = function(id) {