diff options
author | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-15 13:43:23 +1000 |
---|---|---|
committer | Andrew Harvey <andrew@alantgeo.com.au> | 2021-06-15 13:43:23 +1000 |
commit | c8bb704e915710890b678f73c38bf148d9bcc5fa (patch) | |
tree | e5a485d616854de61b4fd889bf103608fbd5678a /bin | |
parent | b41ba2d5e80b62f46fe3974278d562b091e2ea58 (diff) |
test xml entities encoding
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mr2osc.mjs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/mr2osc.mjs b/bin/mr2osc.mjs index 7256624..4c3401b 100755 --- a/bin/mr2osc.mjs +++ b/bin/mr2osc.mjs @@ -360,13 +360,12 @@ async function uploadChanges() { }, Object.assign({ compact: true, attributeValueFn: value => { - // TODO need to test this via the dev api + // these values were tested with test/xmlEntities.js return value.replace(/"/g, '"') // convert quote back before converting amp .replace(/&/g, '&') .replace(/</g, '<') .replace(/>/g, '>') .replace(/"/g, '"') - .replace(/'/g, ''') } }, argv.dryRun ? { spaces: 2 } : {})) |