从数据库取出来,放入textarea在赋值给编辑器,会变成一拖,求解决。
原文:
<?xml version='1.0' encoding='utf-8'?>
<e:Skin class="skins.DemoSkin" xmlns:e="http://ns.egret.com/eui" minHeight="230" minWidth="470">
<e:Button label="按钮">
<e:Skin states="up,over,down,disable">
<e:Image source="image/button_up.png" includeIn="up" width="100%" height="100%" />
<e:Image source="image/button_down.png" includeIn="down" width="100%" height="100%" />
<e:Label id="LabelDisplay" left="20" right="20" top="10" text="{data.label}" />
</e:Skin>
</e:Button>
<e:List id="list" cacheAsBitmap="false">
<e:itemRendererSkinName>
<e:Skin states="up,down">
<e:Image source="image/button_up.png" includeIn="up" width="100%" height="100%" />
<e:Image source="image/button_down.png" includeIn="down" width="100%" height="100%" />
<e:Label id="LabelDisplay" left="20" right="20" top="10" text="{data.label}" />
</e:Skin>
</e:itemRendererSkinName>
</e:List>
</e:Skin>
结果是:
/e:Skin /e:Button /e:Skin /e:itemRendererSkinName /e:List /e:Skin
3条答案
按热度按时间7tofc5zh1#
ia2d9nvy2#
@yalove XML 标签有转义吗?
bbmckpt73#
@pandao 我用的flask 没有转义 还是原文 但是浏览器只显示这一段
后面的是一片空白