alibaba / virtualview_tools

MIT License
190 stars 44 forks source link

NText的text一旦有"<>"这两个特殊字符,会导致编译结果不完整 #6

Closed zekunyan closed 6 years ago

zekunyan commented 6 years ago

比如正常的模板,text写"aa"

<?xml version="1.0" encoding="utf-8"?>
<VHLayout
        orientation="V"
        layoutWidth="300"
        layoutHeight="300"
        background="#999999">
    <NText
        text="aa"
        layoutWidth="wrap_content"
        layoutHeight="wrap_content"/>
</VHLayout>

编译后的结果大小:159bytes,显示正常

把text改成"<>",感觉就好像截断了一样,编译后只有115bytes,并且不能正常显示