From 3f9ff76d937558d99162ddb8677335270ea052b2 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 19 Dec 2024 15:55:03 +0100 Subject: [PATCH] Avoid HTML escaping in selected option --- src/BetterSelect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BetterSelect.js b/src/BetterSelect.js index bb566a4..4358500 100644 --- a/src/BetterSelect.js +++ b/src/BetterSelect.js @@ -267,7 +267,7 @@ export class BetterSelect extends HTMLElement { /** @param {HTMLElement} option */ setOption(option) { - this.setValue(option.dataset.value, option.innerHTML) + this.setValue(option.dataset.value, option.innerText) } /**