mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Fix HTMLElement expression warning (#2675)
This commit is contained in:
parent
04ea9a4aa4
commit
bfaff255f7
1 changed files with 1 additions and 1 deletions
|
@ -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)}</${name}>`;
|
||||
return unescapeHTML(`<${name}${attrHTML}>${await renderSlot(result, slots?.default)}</${name}>`);
|
||||
}
|
||||
|
||||
function getHTMLElementName(constructor: typeof HTMLElement) {
|
||||
|
|
Loading…
Reference in a new issue