"use client";
const c = document.createElement("i");
function r(t) {
  const n = "&" + t + ";";
  c.innerHTML = n;
  const e = c.textContent;
  return (
    // @ts-expect-error: TypeScript is wrong that `textContent` on elements can
    // yield `null`.
    e.charCodeAt(e.length - 1) === 59 && t !== "semi" || e === n ? !1 : e
  );
}
export {
  r as decodeNamedCharacterReference
};
