Support for HTML descriptions

This commit is contained in:
Kuba Orlik 2023-12-09 11:59:23 +01:00
parent c17b51d74c
commit afd9f43e28

View File

@ -30,10 +30,9 @@ app.use(async (ctx) => {
.split(" ") .split(" ")
.toString(); .toString();
parsed_data.rss.channel[0]["itunes:summary"][0] = parsed_data.rss.channel[0]["itunes:summary"][0] =
parsed_data.rss.channel[0]["itunes:summary"][0].replace( "<![CDATA[" +
/(<([^>]+)>)/gi, parsed_data.rss.channel[0]["itunes:summary"][0] +
"" "]]>";
);
parsed_data.rss.channel[0]["itunes:subtitle"][0] = trim( parsed_data.rss.channel[0]["itunes:subtitle"][0] = trim(
parsed_data.rss.channel[0]["itunes:subtitle"][0], parsed_data.rss.channel[0]["itunes:subtitle"][0],
255 255