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.
enableEsiTags
1 parent 3bdaef4 commit d7112adCopy full SHA for d7112ad
README.md
@@ -48,6 +48,16 @@ See [test/index.ts](./test/index.ts) for a more traditional `HTMLRewriter`
48
implementation that doesn't have the caveats listed below, but restricts input
49
and output to strings.
50
51
+To enable the
52
+[`html_rewriter_treats_esi_include_as_void_tag`](https://developers.cloudflare.com/workers/platform/compatibility-dates#htmlrewriter-handling-of-esiinclude)
53
+compatibility flag, set `enableEsiTags` when constructing the `HTMLRewriter`:
54
+
55
+```js
56
+const rewriter = new HTMLRewriter((outputChunk) => { ... }, {
57
+ enableEsiTags: true,
58
+});
59
+```
60
61
## Caveats
62
63
- Once `write` or `end` has been called, you cannot add any more handlers. You
0 commit comments