Skip to content

Commit 3e7f451

Browse files
author
Jelte Lagendijk
committed
Merge branch 'tieniber-master'
2 parents 4f66f52 + 44523eb commit 3e7f451

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/CustomString/widget/CustomString.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ define([
2121
"dijit/_TemplatedMixin",
2222
"dojo/_base/array",
2323
"dojo/_base/lang",
24+
"mxui/dom",
2425
"dojo/text!CustomString/widget/template/CustomString.html"
25-
], function(declare, _WidgetBase, _TemplatedMixin, dojoArray, dojoLang, widgetTemplate) {
26+
], function(declare, _WidgetBase, _TemplatedMixin, dojoArray, dojoLang, dom, widgetTemplate) {
2627
"use strict";
2728

2829
// Declare widget's prototype.
@@ -111,7 +112,7 @@ define([
111112

112113
checkString : function (string, htmlBool) {
113114
if(string.indexOf("<script") > -1 || !htmlBool)
114-
string = mxui.dom.escapeHTML(string);
115+
string = dom.escapeString(string);
115116
return string;
116117
},
117118

test/widgets/CustomString.mpk

42 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)