From: Scott González Date: Tue, 5 Feb 2013 15:13:27 +0000 (-0500) Subject: Datepicker: Use entity number instead of entity name when escaping single quotes. X-Git-Tag: 1.10.1~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7a49ee4cd3a59a11e8c65cb1974481d86e2fd4d7;p=jquery-ui.git Datepicker: Use entity number instead of entity name when escaping single quotes. --- diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index b893f582d..efee7a819 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -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, "'") + "'" : "") + // cell title + ((!otherMonth || showOtherMonths) && daySettings[2] ? " title='" + daySettings[2].replace(/'/g, "'") + "'" : "") + // cell title (unselectable ? "" : " data-handler='selectDay' data-event='click' data-month='" + printDate.getMonth() + "' data-year='" + printDate.getFullYear() + "'") + ">" + // actions (otherMonth && !showOtherMonths ? " " : // display for other months (unselectable ? "" + printDate.getDate() + "" : "