forked from MapComplete/MapComplete
Fix bug which blocked uploads
This commit is contained in:
parent
bcf71a601e
commit
2c677ee8a2
4 changed files with 13 additions and 1 deletions
5
Utils.ts
5
Utils.ts
|
@ -1,4 +1,5 @@
|
|||
import * as $ from "jquery"
|
||||
import {type} from "os";
|
||||
|
||||
export class Utils {
|
||||
|
||||
|
@ -14,6 +15,10 @@ export class Utils {
|
|||
private static extraKeys = ["nl", "en", "fr", "de", "pt", "es", "name", "phone", "email", "amenity", "leisure", "highway", "building", "yes", "no", "true", "false"]
|
||||
|
||||
static EncodeXmlValue(str) {
|
||||
if(typeof str !== "string"){
|
||||
str = ""+str
|
||||
}
|
||||
|
||||
return str.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue