From c8bb704e915710890b678f73c38bf148d9bcc5fa Mon Sep 17 00:00:00 2001 From: Andrew Harvey Date: Tue, 15 Jun 2021 13:43:23 +1000 Subject: test xml entities encoding --- bin/mr2osc.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bin/mr2osc.mjs') 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, ''') } }, argv.dryRun ? { spaces: 2 } : {})) -- cgit v1.2.3