Bun.escapeHTML() utility can be used to escape HTML characters in a string. The following replacements are made.
"becomes"""&becomes"&"'becomes"'"<becomes"<">becomes">"
See Docs > API > Utils for more useful utilities.