Move stripTags function to Util

This commit is contained in:
ClemDee
2019-07-24 14:41:37 +02:00
parent 0636714829
commit 6ae5da3d10
2 changed files with 7 additions and 7 deletions

View File

@@ -319,6 +319,12 @@ define([], function () {
return window.innerHeight < 800 || window.innerWidth < 800;
};
Util.stripTags = function (text) {
var div = document.createElement("div");
div.innerHTML = text;
return div.innerText;
};
return Util;
});
}(self));