Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLRewriter

import { HTMLRewriter } from "https://raw.githubusercontent.com/worker-tools/html-rewriter/master/index.ts";
class HTMLRewriter {
constructor();
[kEnableEsiTags]: boolean;
 
on(selector: string, handlers: ElementHandlers): this;
onDocument(handlers: DocumentHandlers): this;
transform(response: Response): Response;
}

§Constructors

§
new HTMLRewriter()
[src]

§Properties

§
[kEnableEsiTags]: boolean
[src]

§Methods

§
on(selector: string, handlers: ElementHandlers): this
[src]
§
onDocument(handlers: DocumentHandlers): this
[src]
§
transform(response: Response): Response
[src]