diff --git a/sourcefiles/js/openwebif.js b/sourcefiles/js/openwebif.js index 658b251d7..35199c0e6 100644 --- a/sourcefiles/js/openwebif.js +++ b/sourcefiles/js/openwebif.js @@ -764,7 +764,7 @@ function setOSD( statusinfo ) current_name = station; if (station) { - var stationA = station.replace(/'/g,"\\'"); + var stationA = station.replace(/\\/g, '\\\\').replace(/'/g,"\\'"); var stream = "
"; var streamtitle = tstr_stream + ": " + station + "'>"; var streamtitletrans = tstr_stream + " (" + tstr_transcoded + "): " + station + "'>";