We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have this error
TypeError: Cannot read property 'replace' of undefined at S.escapeHTML (C:\Nodejs\node_modules\string\lib\string.js:174:41)
this happend when i try this option S(req.query.ja).escapeHTML();
The value of req.query.ja is null
escapeHTML: function() { //from underscore.string return new this.constructor(this.s.replace(/[&<>"']/g, function(m){ return '&' + reversedEscapeChars[m] + ';'; })); },
I solved the problem with add this line
if (this.s == null) return '';
escapeHTML: function() { //from underscore.string if (this.s == null) return ''; return new this.constructor(this.s.replace(/[&<>"']/g, function(m){ return '&' + reversedEscapeChars[m] + ';'; })); }
This is my first post in Github sorry if this is not normal way to report this issue XD
The text was updated successfully, but these errors were encountered:
Good find, fixed in PR #193 . Hopefully can be merged into master soon.
Sorry, something went wrong.
No branches or pull requests
I have this error
TypeError: Cannot read property 'replace' of undefined
at S.escapeHTML (C:\Nodejs\node_modules\string\lib\string.js:174:41)
this happend when i try this option
S(req.query.ja).escapeHTML();
The value of req.query.ja is null
escapeHTML: function() { //from underscore.string return new this.constructor(this.s.replace(/[&<>"']/g, function(m){ return '&' + reversedEscapeChars[m] + ';'; })); },
I solved the problem with add this line
if (this.s == null) return '';
escapeHTML: function() { //from underscore.string if (this.s == null) return ''; return new this.constructor(this.s.replace(/[&<>"']/g, function(m){ return '&' + reversedEscapeChars[m] + ';'; })); }
This is my first post in Github sorry if this is not normal way to report this issue XD
The text was updated successfully, but these errors were encountered: