Html
import { containsHtml, escapeHtml, stripHtmlTags } from '@rtorcato/js-common/html'
Exports
| Name | Summary |
|---|---|
containsHtml | Checks if a string contains any HTML tags. |
escapeHtml | Escapes special HTML characters in a string to prevent XSS attacks. |
stripHtmlTags | Strips all HTML tags from a string. |
textToHtml | Converts a plain text string to a simple HTML paragraph (\n to ). |
unescapeHtml | Unescapes HTML entities in a string. |