diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-09-18 17:54:30 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-09-18 17:54:30 +0200 |
commit | 4e5de201c070352837d22f3700b3ea47d9ed3043 (patch) | |
tree | 51b68b1d8d4643d37d968d509dff292dfb79ea46 /src | |
parent | f516ae2b815cf20cd739cb525973cebcec84d638 (diff) |
Do not escape url
Diffstat (limited to 'src')
-rw-r--r-- | src/HtmlSearch.c | 8 |
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) { |