Remove escapeJqSelector as it's not used anymore

master
Daniel Berteaud 10 years ago
parent bb1324a36d
commit 190f28ab11
  1. 7
      public/js/vroom.js

@ -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 // Escape entities to prevent XSS
function stringEscape(string){ function stringEscape(string){
string = string.replace(/[\u00A0-\u99999<>\&]/gim, function(i) { string = string.replace(/[\u00A0-\u99999<>\&]/gim, function(i) {

Loading…
Cancel
Save