Skip to content

Commit

Permalink
Add html escaping to meeting-map (Closes: #8)
Browse files Browse the repository at this point in the history
  • Loading branch information
MTecknology committed Jan 29, 2024
1 parent 5152ebd commit 71f06d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/shortcodes/meeting-map.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
var locations = [
{{- range $meeting_id, $meeting := $meetings }}
{{- if and $meeting.longitude $meeting.latitude $meeting.name $meeting.address }}
[ "{{ $meeting.name }}", "<b><a class=\"maplink\" href=\"/meetings/{{ $meeting_id }}\">{{ $meeting.name }}</a></b>{{ if $meeting.place }}<br>{{ $meeting.place }}{{ end }}<br>{{ $meeting.address }}<br><a class=\"maplink\" href=\"/meetings/{{ $meeting_id }}\">Meeting Information</a>", {{ float $meeting.latitude }}, {{ float $meeting.longitude }}],{{ end }}{{ end }}
[ "{{ htmlEscape $meeting.name }}", "<b><a class=\"maplink\" href=\"/meetings/{{ htmlEscape $meeting_id }}\">{{ htmlEscape $meeting.name }}</a></b>{{ if $meeting.place }}<br>{{ htmlEscape $meeting.place }}{{ end }}<br>{{ htmlEscape $meeting.address }}<br><a class=\"maplink\" href=\"/meetings/{{ $meeting_id }}\">Meeting Information</a>", {{ float $meeting.latitude }}, {{ float $meeting.longitude }}],{{ end }}{{ end }}
];
infowindow = new google.maps.InfoWindow();
map = new google.maps.Map(document.getElementById("map"), {
Expand Down

0 comments on commit 71f06d3

Please sign in to comment.