From 34942ea76f6734487323c645f8a72f8d2b1c1b53 Mon Sep 17 00:00:00 2001 From: Gunnar Velle Date: Thu, 16 May 2024 13:32:48 +0200 Subject: [PATCH] Drop unnecessary selector --- src/server/translate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/translate.ts b/src/server/translate.ts index 96846c81a2..e2cb3bcefd 100644 --- a/src/server/translate.ts +++ b/src/server/translate.ts @@ -82,7 +82,7 @@ const doFetch = (name: string, element: ApiTranslateType): Promise .then(async (res) => { const response = load(res); response("ndlaskip").each((_, el) => { - response(el).contents().unwrap(); + response(el).unwrap(); }); const strippedResponse = response("body").unwrap().html() ?? ""; return { key: name, value: strippedResponse };