mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2025-09-15 10:19:13 +00:00
update
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// js/utils/htmlUtils.js
|
||||
export function escapeHTML(unsafe) {
|
||||
return unsafe
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">")
|
||||
.replace(/"/g, """)
|
||||
.replace(/'/g, "'");
|
||||
}
|
||||
|
Reference in New Issue
Block a user