diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/HtmlSearch.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/HtmlSearch.c b/src/HtmlSearch.c index 8a6352e..d0a6439 100644 --- a/src/HtmlSearch.c +++ b/src/HtmlSearch.c @@ -103,8 +103,13 @@ static int quickmedia_html_find_nodes(QuickMediaHtmlSearch *self, QuickMediaNode int quickmedia_html_search_init(QuickMediaHtmlSearch *self, const char *html_source) { self->doc = tidyCreate(); - tidyOptSetBool(self->doc, TidyShowWarnings, no); - tidyOptSetBool(self->doc, TidyUseCustomTags, yes); + TidyIterator it_opt = tidyGetOptionList(self->doc); + while (it_opt) { + TidyOption opt = tidyGetNextOption(self->doc, &it_opt); + if (tidyOptGetType(opt) == TidyBoolean) + tidyOptSetBool(self->doc, tidyOptGetId(opt), no); + } + tidyOptSetInt(self->doc, TidyWrapLen, 0); /* tidyOptSetBool(self->doc, TidyForceOutput, yes); */ if(tidyParseString(self->doc, html_source) < 0) { tidyRelease(self->doc); |