diff options
| author | Christine Dodrill <me@christine.website> | 2016-12-14 21:16:44 -0800 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2016-12-14 21:16:55 -0800 |
| commit | 7c4d5314934c069ac6ec435bcc8582ed2b50b708 (patch) | |
| tree | f07f491803dea51b6dd3c3c9191216eb949503c9 /frontend/src/Utils.js | |
| parent | dc58e7dc5bf97fd18e8b04b25a1c1ade228e0126 (diff) | |
| download | xesite-7c4d5314934c069ac6ec435bcc8582ed2b50b708.tar.xz xesite-7c4d5314934c069ac6ec435bcc8582ed2b50b708.zip | |
frontend/Utils: oh god undo this
Diffstat (limited to 'frontend/src/Utils.js')
| -rw-r--r-- | frontend/src/Utils.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/frontend/src/Utils.js b/frontend/src/Utils.js index 477dddd..f464cf2 100644 --- a/frontend/src/Utils.js +++ b/frontend/src/Utils.js @@ -1,13 +1,9 @@ // Module App.BlogEntry -function htmlDecode(value){ - return $('<div/>').html(value).text(); -} - exports.mdify = function(id) { var converter = new showdown.Converter() elem = document.getElementById(id); md = elem.innerHTML; - elem.innerHTML = htmlDecode(converter.makeHtml(md)); + elem.innerHTML = converter.makeHtml(md); return "done :)"; } |
