unescapeChunksAsync() — astro Function Reference
Architecture documentation for the unescapeChunksAsync() function in escape.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD bfd09420_df66_2fb3_5a0b_487fb4ef4cc0["unescapeChunksAsync()"] f9efe560_33a4_eae8_4bc6_06db77690a17["escape.ts"] bfd09420_df66_2fb3_5a0b_487fb4ef4cc0 -->|defined in| f9efe560_33a4_eae8_4bc6_06db77690a17 a9777e18_d6c8_dd25_9401_be2009f3888d["unescapeHTML()"] a9777e18_d6c8_dd25_9401_be2009f3888d -->|calls| bfd09420_df66_2fb3_5a0b_487fb4ef4cc0 a6fc8e0f_3374_63a9_2337_91a1ed9a894d["hasGetReader()"] bfd09420_df66_2fb3_5a0b_487fb4ef4cc0 -->|calls| a6fc8e0f_3374_63a9_2337_91a1ed9a894d a9777e18_d6c8_dd25_9401_be2009f3888d["unescapeHTML()"] bfd09420_df66_2fb3_5a0b_487fb4ef4cc0 -->|calls| a9777e18_d6c8_dd25_9401_be2009f3888d style bfd09420_df66_2fb3_5a0b_487fb4ef4cc0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/escape.ts lines 66–76
async function* unescapeChunksAsync(iterable: ReadableStream | string): any {
if (hasGetReader(iterable)) {
for await (const chunk of streamAsyncIterator(iterable)) {
yield unescapeHTML(chunk as BlessedType);
}
} else {
for await (const chunk of iterable) {
yield unescapeHTML(chunk as BlessedType);
}
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does unescapeChunksAsync() do?
unescapeChunksAsync() is a function in the astro codebase, defined in packages/astro/src/runtime/server/escape.ts.
Where is unescapeChunksAsync() defined?
unescapeChunksAsync() is defined in packages/astro/src/runtime/server/escape.ts at line 66.
What does unescapeChunksAsync() call?
unescapeChunksAsync() calls 2 function(s): hasGetReader, unescapeHTML.
What calls unescapeChunksAsync()?
unescapeChunksAsync() is called by 1 function(s): unescapeHTML.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free