API Reference

Returns an escaped string that can be inserted into HTML

function escapeString(str: string): string

// Example:

escapeString("Hello <there>, my 'friend'") //=> "Hello &lt;there&gt;, my &#x27;friend&#x27;"