first attempt, login working, getting some data working
This commit is contained in:
parent
876cf8f268
commit
6caee6de79
6 changed files with 276 additions and 33 deletions
|
@ -34,5 +34,21 @@ Node.prototype.removeClass = function(cls) {
|
|||
}
|
||||
};
|
||||
|
||||
var __entityMap = {
|
||||
"&": "&",
|
||||
"<": "<",
|
||||
">": ">"
|
||||
};
|
||||
|
||||
String.prototype.escapeHTML = function() {
|
||||
return String(this).replace(/[&<>]/g, function (s) {
|
||||
return __entityMap[s];
|
||||
});
|
||||
}
|
||||
|
||||
String.prototype.stripHTML = function() {
|
||||
return this.replace(/(<([^>]+)>)/ig, "");
|
||||
}
|
||||
|
||||
if(!window.app) window.app = new App();
|
||||
|
||||
|
|
Reference in a new issue