We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f6cdd9 commit 3feffe8Copy full SHA for 3feffe8
packages/runtime/src/templates/edge-shared/utils.ts
@@ -212,7 +212,9 @@ export const buildResponse = async ({
212
// Apply all of the transforms to the props
213
const props = response.dataTransforms.reduce((prev, transform) => transform(prev), data.props)
214
// Replace the data with the transformed props
215
- textChunk.replace(JSON.stringify({ ...data, props }))
+ // With `html: true` the input is treated as raw HTML
216
+ // @see https://developers.cloudflare.com/workers/runtime-apis/html-rewriter/#global-types
217
+ textChunk.replace(JSON.stringify({ ...data, props }), { html: true })
218
} catch (err) {
219
console.log('Could not parse', err)
220
}
0 commit comments