summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2013-02-15 13:45:01 +0100
committerAndras Timar <atimar@suse.com>2013-02-16 07:57:18 +0000
commiteaaa621a4d132ef864c23c2bf812780ac43bbe8c (patch)
tree050ca197dce4719b4bdd6c0b59749aaa68bc8f32 /l10ntools
parentdcbb11df33fdb32be58694907cfe633e39103204 (diff)
Proper escaping of quotes for android xml resource files.
Change-Id: I9f76986465af5798f1451d44af6765f4e5d1bb09 Reviewed-on: https://gerrit.libreoffice.org/2173 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
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,