properly escape links for viewing & removed debug line

This commit is contained in:
theofficialomega
2025-07-31 01:08:13 +02:00
parent d63e815e2f
commit 338113ba8b
2 changed files with 350 additions and 347 deletions
@@ -68,7 +68,11 @@ module.exports = {
lang: 'fr',
site_id: item.epgId,
name: item.name,
logo: encodeURIComponent(item.logos[0]?.logoImageUrl)
logo: item.logos[0]?.logoImageUrl.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&apos;')
}
})
}
@@ -140,7 +144,6 @@ function parseEpisode(item) {
function parseItems(content, channel) {
const data = JSON.parse(content)
//console.log(data) // For debug
return data && data[channel.site_id] ? data[channel.site_id] : []
}