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) {