Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/html_parser/src/utils/stringify.ts>textContent

Port of fb55/htmlparser2 for Deno
Latest
function textContent
import { textContent } from "https://deno.land/x/html_parser@v0.1.3/src/utils/stringify.ts";

Get a node's text content.

Parameters

node: Node | Node[]

Node to get the text content of.

Returns

string

node's text content.