function escapeHtml
escapeHtml(value: string): string

Escapes the five HTML-significant characters so interpolated user data cannot inject markup into an HTML body.

Parameters

value: string

The raw value

Return Type

string

The HTML-escaped value

Usage

import { escapeHtml } from "mail-plugin/src/index.ts";