|
@@ -3058,7 +3058,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|
|
|
|
|
formatted=this.opts.formatSelection(data, choice.find("div"), this.opts.escapeMarkup);
|
|
|
if (formatted != undefined) {
|
|
|
- choice.find("div").replaceWith("<div>"+formatted+"</div>");
|
|
|
+ choice.find("div").replaceWith($("<div></div>").html(formatted));
|
|
|
}
|
|
|
cssClass=this.opts.formatSelectionCssClass(data, choice.find("div"));
|
|
|
if (cssClass != undefined) {
|