diff --git a/src/browser/js/app/widgets/plots/text.js b/src/browser/js/app/widgets/plots/text.js
index fab67a8a..0146e93c 100644
--- a/src/browser/js/app/widgets/plots/text.js
+++ b/src/browser/js/app/widgets/plots/text.js
@@ -81,7 +81,7 @@ module.exports = class Text extends _widgets_base {
setValue(v) {
this.value = v==null ? this.defaultValue : v
- this.widget.html(iconify(this.value.replace(/\n/g,'
')))
+ this.widget.html(iconify(String(this.value).replace(/\n/g,'
')))
}