From c915f0e243762ba66fcd51a67b6ec42911e05ee9 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Fri, 15 Feb 2013 13:45:01 +0100 Subject: Proper escaping of quotes for android xml resource files. Change-Id: I9f76986465af5798f1451d44af6765f4e5d1bb09 --- l10ntools/source/stringmerge.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'l10ntools') 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("\"",""").replaceAll("\\\\\"","\\\"").replaceAll("\'","'").replaceAll("\\\\\'","\\\'"); + sNewText = sNewText.replaceAll("\'","\\\'").replaceAll("\"","\\\""); xmlNodeSetContent( pCurrent, xmlEncodeSpecialChars( NULL, -- cgit