diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-01 22:21:26 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-12-01 22:26:05 -0500 |
commit | 285cd8301c725cceead97d645f22fd92ba644492 (patch) | |
tree | ec78707f983a88871bc91d95225da0dd77ce27cd /sax | |
parent | 57998c406f460ae0dee65a717222661f49e2b83d (diff) |
We need to tell libxml2 parser to decode entities.
Else we would get raw entity values such as '&' in lieu of '&'.
Change-Id: Ib700705fd9b68980306883aa9652579e1686040d
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/fastparser/fastparser.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |