diff options
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.js b/lib/util.js index a5f14f5..e4cf415 100644 --- a/lib/util.js +++ b/lib/util.js @@ -153,6 +153,7 @@ u.customError = function (name) { } u.escapeHTML = function (html) { + if (!html) return '' return html.toString('utf8') .replace(/</g, '<') .replace(/>/g, '>') |