From fa68216f57b572e2d48797d06fbc079698861f7d Mon Sep 17 00:00:00 2001 From: Daniel LaCosse <3759828+daniellacosse@users.noreply.github.com> Date: Wed, 21 Feb 2024 23:18:31 -0500 Subject: [PATCH] Update import_messages.mjs --- client/src/cordova/android/import_messages.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cordova/android/import_messages.mjs b/client/src/cordova/android/import_messages.mjs index 2da9e9649ea..5315dc04a43 100644 --- a/client/src/cordova/android/import_messages.mjs +++ b/client/src/cordova/android/import_messages.mjs @@ -22,7 +22,7 @@ const XML_STRING_ID_PROPERTY = '@name'; const XML_TEXT_CONTENT = '#'; function escapeXmlCharacters(str) { - return str.replace(/"/g, '\\"').replace(/'/g, "\\'").replace(//g, '\\>;').replace(/&/g, '\\&').replace(/\\/g, '\\'); + return str.replace(/"/g, '\\"').replace(/'/g, "\\'").replace(//g, '\\>;').replace(/&/g, '\\&').replace(/\//g, "\\\\"); } function getNativeLocale(locale) {