function esc
esc(value: string): string

Escapes value for HTML text and attributes. Everything users wrote (names, titles, quotes) goes through it, since none of it may become markup.

Parameters

value: string

Return Type

string

Usage

import { esc } from "api/mail/layout.ts";