DDMAL / CantusDB

A new site for Cantus Database running under Django.
https://cantusdatabase.org
MIT License
5 stars 6 forks source link

Escape special characters in suggested chant data #1561

Closed lucasmarchd01 closed 2 months ago

lucasmarchd01 commented 2 months ago

This PR addresses an issue where the 'onclick' event for suggested chant buttons was not being triggered due to unescaped special characters in the data. By using the escapejs filter, we ensure that special characters in the strings passed to the JavaScript function are properly escaped, preventing any JavaScript errors.

Fixes #1554