From 1bba02e483b7fc27fb4b4f713fa31700317dc3fa Mon Sep 17 00:00:00 2001 From: olaven Date: Mon, 13 Mar 2023 13:15:13 +0100 Subject: [PATCH 1/2] Using `serialize-xml` version with proper escaping. --- routes/api/feeds/[seriesId].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/feeds/[seriesId].ts b/routes/api/feeds/[seriesId].ts index 5c9f4ab..3f5bf0b 100644 --- a/routes/api/feeds/[seriesId].ts +++ b/routes/api/feeds/[seriesId].ts @@ -1,7 +1,7 @@ import { nrkRadio, Episode } from "../../../lib/nrk.ts" import { HandlerContext } from "$fresh/server.ts"; -import { serialize, tag, declaration } from "https://deno.land/x/serializexml@v0.3.2/mod.ts"; +import { serialize, tag, declaration } from "https://raw.githubusercontent.com/olaven/serialize-xml/master/mod.ts"; function toItemTag(episode: Episode) { const description = episode.titles.subtitle || ""; -- 2.40.1 From a56a152b736ed2171b0e08de7bcebdff2771c1ca Mon Sep 17 00:00:00 2001 From: olaven Date: Mon, 13 Mar 2023 13:18:59 +0100 Subject: [PATCH 2/2] Pinning to `serialize-xml@0.4.0` --- routes/api/feeds/[seriesId].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/feeds/[seriesId].ts b/routes/api/feeds/[seriesId].ts index 3f5bf0b..963092b 100644 --- a/routes/api/feeds/[seriesId].ts +++ b/routes/api/feeds/[seriesId].ts @@ -1,7 +1,7 @@ import { nrkRadio, Episode } from "../../../lib/nrk.ts" import { HandlerContext } from "$fresh/server.ts"; -import { serialize, tag, declaration } from "https://raw.githubusercontent.com/olaven/serialize-xml/master/mod.ts"; +import { serialize, tag, declaration } from "https://raw.githubusercontent.com/olaven/serialize-xml/v0.4.0/mod.ts"; function toItemTag(episode: Episode) { const description = episode.titles.subtitle || ""; -- 2.40.1