[Pkg-owncloud-commits] [owncloud] 52/73: escapeHTML function

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:09:10 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.0.10
in repository owncloud.

commit 299c6646552afb5a75b7312e54011b35e0b1f0e2
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Fri Oct 12 15:24:53 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 dec6ea0..d9c2ece 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -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('&').split('<').join('<').split('"').join('"');
+}
+
 OC={
 	webroot:oc_webroot,
 	appswebroot:oc_appswebroot,

-- 
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