Skip to main content
Module

x/html_rewriter/vendor/html_rewriter.d.ts>TextChunk

WASM-based implementation of Cloudflare's HTML Rewriter for use in Deno, browsers, etc.
Go to Latest
class TextChunk
import { TextChunk } from "https://deno.land/x/html_rewriter@v0.1.0-pre.17/vendor/html_rewriter.d.ts";

Properties

readonly
lastInTextNode: boolean
readonly
removed: boolean
readonly
text: string

Methods

after(content: string, options?: ContentTypeOptions): this
before(content: string, options?: ContentTypeOptions): this
remove(): this
replace(content: string, options?: ContentTypeOptions): this