Skip to content

Commit

Permalink
write page contains with textContent
Browse files Browse the repository at this point in the history
Instead of innerHTML when value comes from the DOM or user input
  • Loading branch information
jkasten2 committed Oct 26, 2023
1 parent f4a66ff commit 17e2042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/page/bell/AnimatedElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,10 @@ export default class AnimatedElement {
this.nestedContentSelector,
);
if (nestedContent) {
nestedContent.innerHTML = value;
nestedContent.textContent = value;
}
} else {
this.element.innerHTML = value;
this.element.textContent = value;
}
}

Expand Down

0 comments on commit 17e2042

Please sign in to comment.