From b87a3e427b1a6519836ab5a920683eff48d8ab19 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Sat, 15 Jan 2022 17:41:47 +0100 Subject: [PATCH] ~ Improvied sanitization (References #70) --- src/parser/rssParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser/rssParser.ts b/src/parser/rssParser.ts index 0b20e6b..9222500 100644 --- a/src/parser/rssParser.ts +++ b/src/parser/rssParser.ts @@ -112,7 +112,7 @@ function getElementByName(element: Element | Document, name: string): ChildNode */ function getContent(element: Element | Document, names: string[]): string { let value: string; - for (let name of names) { + for (const name of names) { if (name.contains("#")) { const [elementName, attr] = name.split("#"); const data = getElementByName(element, elementName);