From bfaff255f79355d468ce23806a3f9174658f1ace Mon Sep 17 00:00:00 2001 From: Jonathan Neal Date: Mon, 28 Feb 2022 15:03:22 -0500 Subject: [PATCH] Fix HTMLElement expression warning (#2675) --- packages/astro/src/runtime/server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/runtime/server/index.ts b/packages/astro/src/runtime/server/index.ts index 2253e2b99..f44f14926 100644 --- a/packages/astro/src/runtime/server/index.ts +++ b/packages/astro/src/runtime/server/index.ts @@ -495,7 +495,7 @@ export async function renderHTMLElement(result: SSRResult, constructor: typeof H attrHTML += ` ${attr}="${toAttributeString(await props[attr])}"`; } - return `<${name}${attrHTML}>${await renderSlot(result, slots?.default)}`; + return unescapeHTML(`<${name}${attrHTML}>${await renderSlot(result, slots?.default)}`); } function getHTMLElementName(constructor: typeof HTMLElement) {