mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-28 00:38:30 +02:00
Modularized event listeners
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
module.exports = function escapeHtml(unsafe) {
|
||||
return unsafe
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">")
|
||||
.replace(/"/g, """)
|
||||
.replace(/'/g, "'");
|
||||
};
|
||||
Reference in New Issue
Block a user