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

x/eta/utils.ts>XMLEscape

Embedded JS template engine for Node, Deno, and the browser. Lighweight, fast, and pluggable. Written in TypeScript
Go to Latest
function XMLEscape
import { XMLEscape } from "https://deno.land/x/eta@v2.2.0/utils.ts";

XML-escapes an input value after converting it to a string

Parameters

str: any
  • Input value (usually a string)

Returns

string

XML-escaped string