> For the complete documentation index, see [llms.txt](https://emotettv.gitbook.io/emotettv/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://emotettv.gitbook.io/emotettv/guides/message-sanitization.md).

# Message sanitization

WIP! HTML characters are escaped by default when using [`.toHTML()`](/emotettv/api-reference/parseemotes.md#tohtml). For now, if you need something more advanced refer to [DOMPurify](https://github.com/cure53/DOMPurify).
