Skip to content

Commit

Permalink
~ Improvied sanitization (References #70)
Browse files Browse the repository at this point in the history
  • Loading branch information
joethei committed Jan 15, 2022
1 parent 8f18bf1 commit b87a3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/rssParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b87a3e4

Please sign in to comment.