prerenderElementChildren() — astro Function Reference
Architecture documentation for the prerenderElementChildren() function in jsx.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d1e176a7_620f_5f40_2e8e_44616a96b05b["prerenderElementChildren()"] f6e39b43_58a2_4ca6_30bf_a01e3e031e49["jsx.ts"] d1e176a7_620f_5f40_2e8e_44616a96b05b -->|defined in| f6e39b43_58a2_4ca6_30bf_a01e3e031e49 f285e264_99e9_5260_2d17_5969017d03f8["renderElement()"] f285e264_99e9_5260_2d17_5969017d03f8 -->|calls| d1e176a7_620f_5f40_2e8e_44616a96b05b style d1e176a7_620f_5f40_2e8e_44616a96b05b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/jsx.ts lines 202–211
function prerenderElementChildren(tag: string, children: any) {
// For content within <style> and <script> tags that are plain strings, e.g. injected
// by remark/rehype plugins, or if a user explicitly does `<script>{'...'}</script>`,
// we mark it as an HTML string to prevent the content from being HTML-escaped.
if (typeof children === 'string' && (tag === 'style' || tag === 'script')) {
return markHTMLString(children);
} else {
return children;
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does prerenderElementChildren() do?
prerenderElementChildren() is a function in the astro codebase, defined in packages/astro/src/runtime/server/jsx.ts.
Where is prerenderElementChildren() defined?
prerenderElementChildren() is defined in packages/astro/src/runtime/server/jsx.ts at line 202.
What calls prerenderElementChildren()?
prerenderElementChildren() is called by 1 function(s): renderElement.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free