sax/source/fastparser/fastparser.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 285cd8301c725cceead97d645f22fd92ba644492 Author: Kohei Yoshida <kohei.yosh...@collabora.com> Date: Mon Dec 1 22:21:26 2014 -0500 We need to tell libxml2 parser to decode entities. Else we would get raw entity values such as '&' in lieu of '&'. Change-Id: Ib700705fd9b68980306883aa9652579e1686040d diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx index 7e31784..ae0e8d8 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 { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits