aboutsummaryrefslogtreecommitdiff
path: root/src/HtmlSearch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/HtmlSearch.c')
-rw-r--r--src/HtmlSearch.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/HtmlSearch.c b/src/HtmlSearch.c
index d0a6439..b5aef91 100644
--- a/src/HtmlSearch.c
+++ b/src/HtmlSearch.c
@@ -103,12 +103,8 @@ static int quickmedia_html_find_nodes(QuickMediaHtmlSearch *self, QuickMediaNode
int quickmedia_html_search_init(QuickMediaHtmlSearch *self, const char *html_source) {
self->doc = tidyCreate();
- 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);
- }
+ tidyOptSetBool(self->doc, TidyShowWarnings, no);
+ tidyOptSetBool(self->doc, TidyUseCustomTags, yes);
tidyOptSetInt(self->doc, TidyWrapLen, 0);
/* tidyOptSetBool(self->doc, TidyForceOutput, yes); */
if(tidyParseString(self->doc, html_source) < 0) {