когда я использую lexbor. я не знаю, как вывести HTML-запись в файл.
Код: Выделить всё
mycore_string_raw_t str_raw;
mycore_string_raw_clean_all(&str_raw);
if(myhtml_serialization_tree_buffer(myhtml_tree_get_document(tree), &str_raw)) {
fprintf(stderr, "Could not serialization for the tree\n");
return;
}
QFile file("outputHTML.html");
if (!file.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate)) {
}
Код: Выделить всё
myhtml_serialization_tree_buffer
Подробнее здесь: https://stackoverflow.com/questions/798 ... -to-a-file
Мобильная версия