Skip to content

Commit

Permalink
Update import_messages.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellacosse committed Feb 22, 2024
1 parent 622055c commit abb06d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/cordova/android/import_messages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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, '\\&').replace(/\\/g, '\\');
return str.replace(/"/g, '\\"').replace(/'/g, "\\'").replace(/</g, '\\<').replace(/>/g, '\\>;').replace(/&/g, '\\&').replace(/\//g, "\\\\");
}

function getNativeLocale(locale) {
Expand Down

0 comments on commit abb06d4

Please sign in to comment.