searchVersion: function (dataString) {
var index = dataString.indexOf(this.versionSearchString);
if (index == - 1) return;
return parseFloat(dataString.substring(index + this.versionSearchString.length + 1));
}
... returns browser version, in my case, its "3.6". Since I'm going to use this as a class name, I want to remove any special chars including the "." in it, or replace it with an "-" or "_" and lowercase everything. Want to sanitize is basically.
Thanks!