kopia lustrzana https://github.com/OpenDroneMap/WebODM
Added missing utils class
rodzic
e0c3c71144
commit
7a089ada79
|
@ -0,0 +1,17 @@
|
|||
let escapeEntityMap = {
|
||||
"&": "&",
|
||||
"<": "<",
|
||||
">": ">",
|
||||
'"': '"',
|
||||
"'": ''',
|
||||
"/": '/'
|
||||
};
|
||||
|
||||
export default {
|
||||
escapeHtml: function(string) {
|
||||
return String(string).replace(/[&<>"'\/]/g, function (s) {
|
||||
return escapeEntityMap[s];
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Ładowanie…
Reference in New Issue