Converts HTML special characters into entities.
function stringEscapeHTML(str: string): string
str:string
The string to escape.
The string with special HTML characters replaced by entities.
import { stringEscapeHTML } from 'utils/strings';
console.log(stringEscapeHTML('<a>foo</a>')); // Outputs: '<a>foo</a>'