[Pkg-owncloud-commits] [owncloud] 22/67: escapeHTML function
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:10:34 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.
commit 1960067926b5928a2023d819bcf504e4c0057e23
Author: Lukas Reschke <lukas at statuscode.ch>
Date: Fri Oct 12 14:01:47 2012 +0200
escapeHTML function
---
core/js/js.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/core/js/js.js b/core/js/js.js
index 657dd6d..9a7da67 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list