improve xml_loader

This commit is contained in:
lixianjing 2020-10-07 09:42:53 +08:00
parent 88c4327a0c
commit 64e67b982e

View File

@ -193,8 +193,11 @@ static void xml_loader_on_start_widget(XmlBuilder* thiz, const char* tag, const
}
if (!is_precedence_prop(tag, key)) {
ENSURE(str_decode_xml_entity(&(b->str), value) == RET_OK);
str_unescape(&(b->str));
if (str_decode_xml_entity(&(b->str), value) == RET_OK) {
log_warn("decode xml entiry %s failed\n", value);
str_unescape(&(b->str));
}
ui_builder_on_widget_prop(b->ui_builder, key, b->str.str);
}