To fix the double escaping issue, we need to ensure that backslashes are escaped before any other characters. This way, any existing backslashes are correctly handled before other replacements are made. We will modify the changeSongHighlight function to first escape backslashes and then escape double quotes.
Suggested fixes powered by Copilot Autofix. Review carefully before merging.
Fixes https://github.com/Team-BTMC/osu-radio/security/code-scanning/1
To fix the double escaping issue, we need to ensure that backslashes are escaped before any other characters. This way, any existing backslashes are correctly handled before other replacements are made. We will modify the
changeSongHighlight
function to first escape backslashes and then escape double quotes.Suggested fixes powered by Copilot Autofix. Review carefully before merging.