forked from cadey/xesite
frontend/Utils: jquery
This commit is contained in:
parent
cf0cb7b780
commit
50264d5191
|
@ -0,0 +1 @@
|
||||||
|
15947
|
|
@ -1,8 +1,7 @@
|
||||||
// Module App.BlogEntry
|
// Module App.BlogEntry
|
||||||
|
|
||||||
function htmlDecode(input) {
|
function htmlDecode(value){
|
||||||
var doc = new DOMParser().parseFromString(input, "text/html");
|
return $('<div/>').html(value).text();
|
||||||
return doc.documentElement.textContent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.mdify = function(id) {
|
exports.mdify = function(id) {
|
||||||
|
|
Loading…
Reference in New Issue