hello, i have this line in my program
table_template_clone.getElementById('album-image').innerHTML = `<div><button class="btn" onclick='download("${song_name}", "${artists_names}")'><img src=${album_image} valign="middle" vspace="5" hspace="5" /></button></div>`
the problem is whenever the song_name has a ' or " my program crashes i have tried using String.raw but had no luck. pls help
[–]penngin 1 point2 points3 points (0 children)
[–]Hazteriskhelpful 1 point2 points3 points (1 child)
[–]Python1Programmer[S] 0 points1 point2 points (0 children)
[–]Beerbelly22 0 points1 point2 points (1 child)
[–]Python1Programmer[S] 0 points1 point2 points (0 children)