From 285cd8301c725cceead97d645f22fd92ba644492 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida <kohei.yoshida@collabora.com> Date: Mon, 1 Dec 2014 22:21:26 -0500 Subject: We need to tell libxml2 parser to decode entities. Else we would get raw entity values such as '&' in lieu of '&'. Change-Id: Ib700705fd9b68980306883aa9652579e1686040d --- sax/source/fastparser/fastparser.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sax/source') diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 7e3178495fcd..ae0e8d8b42f4 100644 --- a/sax/source/fastparser/fastparser.cxx +++ b/sax/source/fastparser/fastparser.cxx @@ -1006,6 +1006,9 @@ void FastSaxParserImpl::parse() reinterpret_cast<const char*>(seqOut.getConstArray()), nRead, NULL ); if( !rEntity.mpParser ) throw SAXException("Couldn't create parser", Reference< XInterface >(), Any() ); + + // Tell libxml2 parser to decode entities in attribute values. + xmlCtxtUseOptions(rEntity.mpParser, XML_PARSE_NOENT); } else { -- cgit