summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
Diffstat (limited to 'itjs')
-rw-r--r--itjs/it.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs/it.js b/itjs/it.js
index 4daf2c0..a43ba3a 100644
--- a/itjs/it.js
+++ b/itjs/it.js
@@ -58,7 +58,7 @@ function ED()
*/
function Q(value)
{
- return value.toString().replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
+ return typeof value == "undefined" ? "" : value.toString().replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
}
/**