forked from DebaucheryLibrarian/traxxx
Move tag posters and photos to media database.
This commit is contained in:
10
src/utils/escape-html.js
Normal file
10
src/utils/escape-html.js
Normal file
@@ -0,0 +1,10 @@
|
||||
function escapeHtml(text) {
|
||||
return text
|
||||
.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''');
|
||||
}
|
||||
|
||||
module.exports = escapeHtml;
|
||||
Reference in New Issue
Block a user