diff --git a/src/main/webapp/scripts/dialogs/expression-preview-dialog.js b/src/main/webapp/scripts/dialogs/expression-preview-dialog.js index 1e38c223b..147e76bb3 100644 --- a/src/main/webapp/scripts/dialogs/expression-preview-dialog.js +++ b/src/main/webapp/scripts/dialogs/expression-preview-dialog.js @@ -289,13 +289,13 @@ ExpressionPreviewDialog.Widget.prototype._renderPreview = function(expression, d var renderValue = function(td, v) { if (v !== null && v !== undefined) { if ($.isArray(v)) { - td.html(JSON.stringify(v)); + td.text(JSON.stringify(v)); } else if ($.isPlainObject(v)) { $('').addClass("expression-preview-special-value").text("Error: " + v.message).appendTo(td); } else if (typeof v === "string" && v.length == 0) { $('empty string').addClass("expression-preview-special-value").appendTo(td); } else { - td.html(v.toString()); + td.text(v.toString()); } } else { $('null').addClass("expression-preview-special-value").appendTo(td);