diff --git a/src/js/script.js b/src/js/script.js index f8ed73f..bafa763 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -124,7 +124,7 @@ function escapeHtml(text) { "'": ''' }; - return text.replace(/[&<>"']/g, function(m) { return map[m]; }); + return text.toString().replace(/[&<>"']/g, function(m) { return map[m]; }); } function updateTooltip(el, text) {