From 9644e7bae9116edaf8d37c5b38cb32b892f10ff6 Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Wed, 28 Oct 2015 19:11:07 +0100 Subject: Dialog: Escape closeText option before passing it to button Ref gh-1632 Fixes jquery/api.jqueryui.com#281 --- ui/widgets/dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/widgets') diff --git a/ui/widgets/dialog.js b/ui/widgets/dialog.js index f0a2f6751..c3ca95ed3 100644 --- a/ui/widgets/dialog.js +++ b/ui/widgets/dialog.js @@ -426,7 +426,7 @@ $.widget( "ui.dialog", { // dialog in IE (#9312) this.uiDialogTitlebarClose = $( "" ) .button( { - label: this.options.closeText, + label: $( "" ).text( this.options.closeText ).html(), icon: "ui-icon-closethick", showLabel: false } ) @@ -715,7 +715,7 @@ $.widget( "ui.dialog", { this.uiDialogTitlebarClose.button( { // Ensure that we always pass a string - label: "" + value + label: $( "" ).text( "" + this.options.closeText ).html() } ); } -- cgit v1.2.3