dont allow to insert html

This commit is contained in:
Ralf Becker 2014-11-21 11:18:42 +00:00
parent f5769333da
commit 0da238155c

View File

@ -59,7 +59,7 @@ var et2_groupbox_legend = et2_baseWidget.extend(
init: function() {
this._super.apply(this, arguments);
var legend = jQuery("<legend>"+this.options.label+"</legend>");
var legend = jQuery(document.createElement("legend")).text(this.options.label);
this.setDOMNode(legend[0]);
}
});