diff --git a/core/js/js.js b/core/js/js.js index 657dd6d6f8a..9a7da67e71f 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -30,6 +30,15 @@ function t(app,text){ } t.cache={}; +/* +* Sanitizes a HTML string +* @param string +* @return Sanitized string +*/ +function escapeHTML(s) { + return s.toString().split('&').join('&').split('<').join('<').split('"').join('"'); +} + /** * Get the path to download a file * @param file The filename