]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Use entity number instead of entity name when escaping single quotes.
authorScott González <scott.gonzalez@gmail.com>
Tue, 5 Feb 2013 15:13:27 +0000 (10:13 -0500)
committerScott González <scott.gonzalez@gmail.com>
Tue, 5 Feb 2013 15:13:27 +0000 (10:13 -0500)
ui/jquery.ui.datepicker.js

index b893f582d280d58110e83361189b353a54cd1b24..efee7a81900d48e556a02c414d1b57684bbbe602 100644 (file)
@@ -1741,7 +1741,7 @@ $.extend(Datepicker.prototype, {
                                                        (otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + // highlight custom dates
                                                        (printDate.getTime() === currentDate.getTime() ? " " + this._currentClass : "") + // highlight selected day
                                                        (printDate.getTime() === today.getTime() ? " ui-datepicker-today" : "")) + "'" + // highlight today (if different)
-                                                       ((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "&apos;") + "'" : "") + // cell title
+                                                       ((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "&#39;") + "'" : "") + // cell title
                                                        (unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'") + ">" + // actions
                                                        (otherMonth && !showOtherMonths ? "&#xa0;" : // display for other months
                                                        (unselectable ? "<span class='ui-state-default'>" + printDate.getDate() + "</span>" : "<a class='ui-state-default" +