From 50264d51915874654883d389b05d7b0197196a9c Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Wed, 14 Dec 2016 18:29:10 -0800 Subject: [PATCH] frontend/Utils: jquery --- frontend/.psc-ide-port | 1 + frontend/src/Utils.js | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 frontend/.psc-ide-port 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) {