escapeHTML function

remotes/origin/stable4
Lukas Reschke 2012-10-12 15:24:53 +07:00
parent d4b19ef0db
commit 299c664655
1 changed files with 9 additions and 0 deletions

@ -29,6 +29,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;');
}
OC={
webroot:oc_webroot,
appswebroot:oc_appswebroot,