Reference

@reckona/mreact-shared/html-escape

3 public exports.

Function

FunctionescapeHtmlAttributefunction escapeHtmlAttribute(value: unknown): stringEscapes a value for safe use in an HTML attribute.FunctionescapeHtmlQuotedAttributefunction escapeHtmlQuotedAttribute(value: unknown): stringEscapes a value for safe use inside an already quoted HTML attribute.FunctionescapeHtmlTextfunction escapeHtmlText(value: unknown): stringEscapes text content for safe insertion between HTML tags.