Browse files

Always convert input to string - found bug where it was an integer

  • Loading branch information...
1 parent 4c2709c commit b7850da25d08d3c2063aeabcad7e935cf779dfbd @ry ry committed Feb 21, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 client.js
View
1 client.js
@@ -38,6 +38,7 @@ util = {
// html sanitizer
toStaticHTML: function(inputHtml) {
+ inputHtml = inputHtml.toString();
return inputHtml.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;");

0 comments on commit b7850da

Please sign in to comment.