From 9dba8043f1b18e5fdca463a7f053738053d3efcf Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Mon, 19 Feb 2018 20:11:17 +0000 Subject: [PATCH] Set more options on tidyhtml. --- src/htmlretrieve.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/htmlretrieve.cpp b/src/htmlretrieve.cpp index 0c9ef66..8ec9f5b 100644 --- a/src/htmlretrieve.cpp +++ b/src/htmlretrieve.cpp @@ -68,6 +68,13 @@ namespace duck { && tidyOptSetBool(tidyDoc, TidyQuiet, yes) && tidyOptSetBool(tidyDoc, TidyNumEntities, yes) && tidyOptSetBool(tidyDoc, TidyShowWarnings, no) + && tidyOptSetBool(tidyDoc, TidyEscapeScripts, yes) + && tidyOptSetInt(tidyDoc, TidyNewline, TidyLF) + && tidyOptSetBool(tidyDoc,TidyFixUri, yes) + && tidyOptSetBool(tidyDoc, TidyHideComments, yes) + && tidyOptSetBool(tidyDoc, TidyPPrintTabs, yes) + && tidyOptSetBool(tidyDoc, TidyLiteralAttribs, no) + && tidyOptSetBool(tidyDoc, TidyPunctWrap, no) && tidyOptSetBool(tidyDoc, TidyDropPropAttrs, yes); int tidyResponseCode = -1;