Skip to content

Commit

Permalink
Escape the popover title for special HTML characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Apr 5, 2023
1 parent 87a114a commit 2255c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/utils/calendar_default_view.js
Expand Up @@ -734,7 +734,7 @@ App.Utils.CalendarDefaultView = (function () {

$target.popover({
placement: 'top',
title: info.event.title,
title: App.Utils.String.escapeHtml(info.event.title),
content: $html,
html: true,
container: '#calendar',
Expand Down
2 changes: 1 addition & 1 deletion assets/js/utils/calendar_table_view.js
Expand Up @@ -1406,7 +1406,7 @@ App.Utils.CalendarTableView = (function () {

$target.popover({
placement: 'top',
title: info.event.title,
title: App.Utils.String.escapeHtml(info.event.title),
content: $html,
html: true,
container: '#calendar',
Expand Down

0 comments on commit 2255c84

Please sign in to comment.