editor.md /r/n会被干掉

mwkjh3gx  于 2023-03-19  发布在  其他
关注(0)|答案(3)|浏览(157)

从数据库取出来,放入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

7tofc5zh

7tofc5zh1#

<textarea style="display:none, wrap:hard">
</textarea>
ia2d9nvy

ia2d9nvy2#

@yalove XML 标签有转义吗?

bbmckpt7

bbmckpt73#

@pandao 我用的flask 没有转义 还是原文 但是浏览器只显示这一段
后面的是一片空白

相关问题