- if (cit->type == "html")
- {
- HTMLParser parser;
- Event ev(&*cit, vars);
-
- parser.set_verbose(m_verbose);
-
- std::string buf(*content_buf, *content_len);
-
- parser.parse(ev, buf.c_str());
- const char *res = ev.result();
- *content_buf = odr_strdup(o, res);
- *content_len = strlen(res);
- }
- if (cit->type == "quoted-literal")
- {
- std::string content(*content_buf, *content_len);
- cit->quoted_literal(content, vars);
- *content_buf = odr_strdup(o, content.c_str());
- *content_len = strlen(*content_buf);
- }
+ std::string content(*content_buf, *content_len);
+ cit->parse(m_verbose, content, vars);
+ *content_buf = odr_strdup(o, content.c_str());
+ *content_len = strlen(*content_buf);