aboutsummaryrefslogtreecommitdiffstats
path: root/ui/widgets/dialog.js
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2015-10-28 19:11:07 +0100
committerJörn Zaefferer <joern.zaefferer@gmail.com>2015-10-28 19:48:35 +0100
commit9644e7bae9116edaf8d37c5b38cb32b892f10ff6 (patch)
tree8382c72940703f1ef70c17e83733e660075ed4ce /ui/widgets/dialog.js
parent3e9e9d58ec47a4cbb917193bb64f6fc6e6fc2cb9 (diff)
downloadjquery-ui-9644e7bae9116edaf8d37c5b38cb32b892f10ff6.tar.gz
jquery-ui-9644e7bae9116edaf8d37c5b38cb32b892f10ff6.zip
Dialog: Escape closeText option before passing it to button
Ref gh-1632 Fixes jquery/api.jqueryui.com#281
Diffstat (limited to 'ui/widgets/dialog.js')
-rw-r--r--ui/widgets/dialog.js4
1 files changed, 2 insertions, 2 deletions
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 type='button'></button>" )
.button( {
- label: this.options.closeText,
+ label: $( "<a>" ).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: $( "<a>" ).text( "" + this.options.closeText ).html()
} );
}