diff --git a/packages/embeds/embed-core/src/FloatingButton/FloatingButton.ts b/packages/embeds/embed-core/src/FloatingButton/FloatingButton.ts index a1a2604881..79e83175ea 100644 --- a/packages/embeds/embed-core/src/FloatingButton/FloatingButton.ts +++ b/packages/embeds/embed-core/src/FloatingButton/FloatingButton.ts @@ -26,7 +26,7 @@ export class FloatingButton extends HTMLElement { if (!buttonEl) { throw new Error("Button not found"); } - buttonEl.innerHTML = newValue; + buttonEl.textContent = newValue; } else if (name === "data-hide-button-icon") { const buttonIconEl = this.shadowRoot?.querySelector("#button-icon"); if (!buttonIconEl) {