Skip to content

Commit

Permalink
apply codeql suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
eashaw committed Oct 23, 2024
1 parent 1e7ea7e commit ade60c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/assets/js/pages/handbook/basic-handbook.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ parasails.registerPage('basic-handbook', {
// Add links to the responsibilities under the responsibilities heading.
if($('#responsibilities')){
let responsibilitiesLinksHtml = '<ul>\n';
$('h3').each((unused, el)=>{ responsibilitiesLinksHtml += '<li><a href="#'+$(el).attr('id')+'">'+$(el).text()+'</a></li>\n'; });
$('h3').each((unused, el)=>{ responsibilitiesLinksHtml += '<li><a href="#'+_.escape($(el).attr('id'))+'">'+_.escape($(el).text())+'</a></li>\n'; });
responsibilitiesLinksHtml+= '</ul>';
$('#responsibilities + p').after(responsibilitiesLinksHtml);
}
Expand Down

0 comments on commit ade60c7

Please sign in to comment.