Skip to content

Commit

Permalink
improve logic and naming
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheFlo committed Oct 19, 2023
1 parent ef918e3 commit 0589a1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class OpfCtaScriptsService {
return loadedList;
}, []),
map((list) => {
return this.cleanHtmls(list);
return this.removeScriptTags(list);
})
);
}
Expand Down Expand Up @@ -235,7 +235,7 @@ export class OpfCtaScriptsService {
);
}

protected cleanHtmls(htmls: string[]) {
protected removeScriptTags(htmls: string[]) {
return htmls.map((html) => {
const element = new DOMParser().parseFromString(html, 'text/html');
const script = element.getElementsByTagName('script');
Expand Down

0 comments on commit 0589a1d

Please sign in to comment.