aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/NyaaSi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/NyaaSi.cpp')
-rw-r--r--src/plugins/NyaaSi.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/NyaaSi.cpp b/src/plugins/NyaaSi.cpp
index c005b31..7a84346 100644
--- a/src/plugins/NyaaSi.cpp
+++ b/src/plugins/NyaaSi.cpp
@@ -288,7 +288,9 @@ namespace QuickMedia {
std::string *description = (std::string*)userdata;
const char *text = quickmedia_html_node_get_text(node);
if(description->empty() && text) {
- *description = strip(text);
+ std::string desc = strip(text);
+ html_unescape_sequences(desc);
+ *description = std::move(desc);
}
}, &description);
@@ -360,7 +362,9 @@ namespace QuickMedia {
auto *item_data = (BodyItemContext*)userdata;
const char *text = quickmedia_html_node_get_text(node);
if(text && item_data->index < item_data->body_items->size()) {
- (*item_data->body_items)[item_data->index]->set_description(strip(text));
+ std::string desc = strip(text);
+ html_unescape_sequences(desc);
+ (*item_data->body_items)[item_data->index]->set_description(std::move(desc));
item_data->index++;
}
}, &body_item_image_context);