Skip to main content
Module

x/escape_html/mod.ts>escapeHtml

Escape string for use in HTML for Deno
Latest
function escapeHtml
import { escapeHtml } from "https://deno.land/x/escape_html@1.0.0/mod.ts";

Escape special characters in the given string of text.

Parameters

string: string

The string to escape for inserting into HTML

Returns

string