diff options
| author | Christine Dodrill <me@christine.website> | 2016-12-14 18:29:10 -0800 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2016-12-14 18:29:10 -0800 |
| commit | 50264d51915874654883d389b05d7b0197196a9c (patch) | |
| tree | b1d28191ab9c0ed2edbed387009c978fc05c51f4 | |
| parent | cf0cb7b7807df255e6f8ac7c92f8bd650d41e8c0 (diff) | |
| download | xesite-50264d51915874654883d389b05d7b0197196a9c.tar.xz xesite-50264d51915874654883d389b05d7b0197196a9c.zip | |
frontend/Utils: jquery
| -rw-r--r-- | frontend/.psc-ide-port | 1 | ||||
| -rw-r--r-- | frontend/src/Utils.js | 5 |
2 files changed, 3 insertions, 3 deletions
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 $('<div/>').html(value).text(); } exports.mdify = function(id) { |
