From 6fa901871df81cd8ecdc07d30ef1a20d8c7b1b1d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 7 Mar 2018 00:03:51 +0000 Subject: Store parser flags in service config --- service/apiImpl.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'service/apiImpl.cpp') diff --git a/service/apiImpl.cpp b/service/apiImpl.cpp index 1de31cb..28d88b4 100644 --- a/service/apiImpl.cpp +++ b/service/apiImpl.cpp @@ -64,9 +64,7 @@ namespace MirrorSearch { { auto fmt = AdHoc::Buffer::getFormat(s->baseurl); auto url = (*fmt % fn).str(); - auto doc = getDoc(url, - HTML_PARSE_RECOVER | HTML_PARSE_NODEFDTD | HTML_PARSE_NOIMPLIED | - HTML_PARSE_NOWARNING | HTML_PARSE_NOERROR); + auto doc = getDoc(url, s->parserflags); auto xpathCtx = getXPathCxt(doc); auto xpathObj = getXPathObj(s->listxpath, xpathCtx, xmlXPathObjectType::XPATH_NODESET); log->messagebf(LOG::INFO, "%d nodes matched %s", xpathObj->nodesetval->nodeNr, s->listxpath); -- cgit v1.2.3