frontend/Utils: jquery
This commit is contained in:
parent
cf0cb7b780
commit
50264d5191
|
@ -0,0 +1 @@
|
|||
15947
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue