Skip to content

Commit 7a49ee4

Browse files
committed
Datepicker: Use entity number instead of entity name when escaping single quotes.
1 parent 101a09d commit 7a49ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ $.extend(Datepicker.prototype, {
17411741
(otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + // highlight custom dates
17421742
(printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "") + // highlight selected day
17431743
(printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "")) + "'" + // highlight today (if different)
1744-
((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "'") + "'" : "") + // cell title
1744+
((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "'") + "'" : "") + // cell title
17451745
(unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'") + ">" + // actions
17461746
(otherMonth && !showOtherMonths ? " " : // display for other months
17471747
(unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +

0 commit comments

Comments
 (0)