Remove escapeJqSelector as it's not used anymore

This commit is contained in:
Daniel Berteaud 2015-06-27 13:58:29 +02:00
parent bb1324a36d
commit 190f28ab11
1 changed files with 0 additions and 7 deletions

View File

@ -122,13 +122,6 @@ $('#switch_lang').change(function(){
});
});
// Escape a string to be used as a jQuerry selector
// Taken from http://totaldev.com/content/escaping-characters-get-valid-jquery-id
function escapeJqSelector(string){
return string.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1');
}
// Escape entities to prevent XSS
function stringEscape(string){
string = string.replace(/[\u00A0-\u99999<>\&]/gim, function(i) {