mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 19:18:53 +08:00
improve xml_loader
This commit is contained in:
parent
88c4327a0c
commit
64e67b982e
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user