aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Fourchan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Fourchan.cpp')
-rw-r--r--src/plugins/Fourchan.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp
index 5932144..4f87049 100644
--- a/src/plugins/Fourchan.cpp
+++ b/src/plugins/Fourchan.cpp
@@ -205,12 +205,8 @@ namespace QuickMedia {
static void extract_comment_pieces(const char *html_source, size_t size, CommentPieceCallback callback) {
TidyDoc doc = tidyCreate();
- TidyIterator it_opt = tidyGetOptionList(doc);
- while (it_opt) {
- TidyOption opt = tidyGetNextOption(doc, &it_opt);
- if (tidyOptGetType(opt) == TidyBoolean)
- tidyOptSetBool(doc, tidyOptGetId(opt), no);
- }
+ tidyOptSetBool(doc, TidyShowWarnings, no);
+ tidyOptSetBool(doc, TidyUseCustomTags, yes);
tidyOptSetInt(doc, TidyWrapLen, 0);
if(tidyParseString(doc, html_source) < 0) {
CommentPiece comment_piece;