Skip to content

Commit

Permalink
Always convert input to string - found bug where it was an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Feb 21, 2010
1 parent 4c2709c commit b7850da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client.js
Expand Up @@ -38,6 +38,7 @@ util = {

// html sanitizer
toStaticHTML: function(inputHtml) {
inputHtml = inputHtml.toString();
return inputHtml.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;");
Expand Down

0 comments on commit b7850da

Please sign in to comment.