escapeHTML function

remotes/origin/stable45
Lukas Reschke 13 years ago
parent 33bd9ecd9d
commit 1960067926
  1. 9
      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('&amp;').split('<').join('&lt;').split('"').join('&quot;');
}
/**
* Get the path to download a file
* @param file The filename

Loading…
Cancel
Save