Skip to content

Commit

Permalink
Sanitize SVG title attribute in podcastChannel.html
Browse files Browse the repository at this point in the history
  • Loading branch information
kagemomiji committed Jul 20, 2024
1 parent e44911f commit 02efcbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

feather.replace();
Array.from(document.querySelectorAll('svg.feather[title]')).forEach((element) => {
element.insertAdjacentHTML('afterbegin', `<title>${element.attributes.title.value}</title>`);
element.insertAdjacentHTML('afterbegin', `<title>${DOMPurify.sanitize(element.attributes.title.value)}</title>`);
});
countSelected();
}
Expand Down

0 comments on commit 02efcbd

Please sign in to comment.