summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2013-02-15 13:45:01 +0100
committerThorsten Behrens <tbehrens@suse.com>2013-02-15 15:11:59 +0100
commitc915f0e243762ba66fcd51a67b6ec42911e05ee9 (patch)
treec7d820ce8f1a73f820a0ed3cf113eba61312b5f6 /l10ntools
parent5c31e17e46b02e755b075e63a08ffd8ad0eaa481 (diff)
Proper escaping of quotes for android xml resource files.
Change-Id: I9f76986465af5798f1451d44af6765f4e5d1bb09
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/stringmerge.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/l10ntools/source/stringmerge.cxx b/l10ntools/source/stringmerge.cxx
index 26aabcb12e40..378548eaa93a 100644
--- a/l10ntools/source/stringmerge.cxx
+++ b/l10ntools/source/stringmerge.cxx
@@ -161,7 +161,7 @@ void StringParser::Merge(
{
OString sNewText;
pEntrys->GetText( sNewText, STRING_TYP_TEXT, m_sLang );
- sNewText = sNewText.replaceAll("\"","&quot;").replaceAll("\\\\\"","\\\"").replaceAll("\'","&apos;").replaceAll("\\\\\'","\\\'");
+ sNewText = sNewText.replaceAll("\'","\\\'").replaceAll("\"","\\\"");
xmlNodeSetContent(
pCurrent,
xmlEncodeSpecialChars( NULL,