From 072f5a8a7c513707376c9a9b50cb5057886100d6 Mon Sep 17 00:00:00 2001 From: Josh Kasten Date: Thu, 26 Oct 2023 21:26:09 +0000 Subject: [PATCH] write page contains with textContent Instead of innerHTML when value comes from the DOM or user input --- src/page/bell/AnimatedElement.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page/bell/AnimatedElement.ts b/src/page/bell/AnimatedElement.ts index f31bd450f..e46f8aede 100755 --- a/src/page/bell/AnimatedElement.ts +++ b/src/page/bell/AnimatedElement.ts @@ -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; } }