Skip to content

Commit

Permalink
Merge pull request #68 from disfated/patch-1
Browse files Browse the repository at this point in the history
removed unnecessary arguments
  • Loading branch information
andrewplummer committed Dec 2, 2011
2 parents 81959ab + 5e1f745 commit e92f023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sugar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2831,7 +2831,7 @@
* 'one & two'.escapeHTML() -> 'one & two'
*
***/
'escapeHTML': function(param) {
'escapeHTML': function() {
return this.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
},

Expand All @@ -2845,7 +2845,7 @@
* 'one &amp; two'.unescapeHTML() -> 'one & two'
*
***/
'unescapeHTML': function(param) {
'unescapeHTML': function() {
return this.replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&amp;/g, '&');
},

Expand Down

0 comments on commit e92f023

Please sign in to comment.