for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
function escapeHtml(unsafe: string): string {
return unsafe
.replaceAll("&", "&")
.replaceAll("<", "<")
.replaceAll(">", ">")
.replaceAll('"', """)
.replaceAll("'", "'");
}
export default escapeHtml;