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

x/html_parser/src/utils/entities/mod.ts>encode

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

Encodes a string with entities.

Parameters

data: string

String to encode.

optional
options: EncodingOptions | EntityLevel = [UNSUPPORTED]

Encoding options.

Returns

string