{"action":"created","issue":{"url":"https://api.github.com/repos/pandao/editor.md/issues/175","labels_url":"https://api.github.com/repos/pandao/editor.md/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/pandao/editor.md/issues/175/comments","events_url":"https://api.github.com/repos/pandao/editor.md/issues/175/events","html_url":"https://github.com/pandao/editor.md/issues/175","id":118010128,"number":175,"title":"/r/n会被干掉","user":{"login":"xinfangke","id":4556693,"avatar_url":"https://avatars.githubusercontent.com/u/4556693?v=3","gravatar_id":"","url":"https://api.github.com/users/xinfangke","html_url":"https://github.com/xinfangke","followers_url":"https://api.github.com/users/xinfangke/followers","following_url":"https://api.github.com/users/xinfangke/following{/other_user}","gists_url":"https://api.github.com/users/xinfangke/gists{/gist_id}","starred_url":"https://api.github.com/users/xinfangke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xinfangke/subscriptions","organizations_url":"https://api.github.com/users/xinfangke/orgs","repos_url":"https://api.github.com/users/xinfangke/repos","events_url":"https://api.github.com/users/xinfangke/events{/privacy}","received_events_url":"https://api.github.com/users/xinfangke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-20T10:24:11Z","updated_at":"2016-01-12T09:06:12Z","closed_at":null,"body":"从数据库取出来，放入textarea在赋值给编辑器，会变成一拖，求解决。\r\n\r\n原文：\r\n```html\r\n<?xml version='1.0' encoding='utf-8'?> \r\n<e:Skin class=\"skins.DemoSkin\" xmlns:e=\"http://ns.egret.com/eui\" minHeight=\"230\" minWidth=\"470\"> \r\n    <e:Button label=\"按钮\"> \r\n        <e:Skin states=\"up,over,down,disable\"> \r\n            <e:Image source=\"image/button_up.png\" includeIn=\"up\" width=\"100%\" height=\"100%\" /> \r\n            <e:Image source=\"image/button_down.png\" includeIn=\"down\" width=\"100%\" height=\"100%\" /> \r\n            <e:Label id=\"LabelDisplay\" left=\"20\" right=\"20\" top=\"10\" text=\"{data.label}\" /> \r\n        </e:Skin> \r\n    </e:Button> \r\n    <e:List id=\"list\" cacheAsBitmap=\"false\"> \r\n        <e:itemRendererSkinName> \r\n           <e:Skin states=\"up,down\"> \r\n            <e:Image source=\"image/button_up.png\" includeIn=\"up\" width=\"100%\" height=\"100%\" /> \r\n            <e:Image source=\"image/button_down.png\" includeIn=\"down\" width=\"100%\" height=\"100%\" /> \r\n            <e:Label id=\"LabelDisplay\" left=\"20\" right=\"20\" top=\"10\" text=\"{data.label}\" /> \r\n            </e:Skin> \r\n        </e:itemRendererSkinName> \r\n    </e:List> \r\n</e:Skin>\r\n```\r\n\r\n结果是：\r\n<?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>"},"comment":{"url":"https://api.github.com/repos/pandao/editor.md/issues/comments/170845201","html_url":"https://github.com/pandao/editor.md/issues/175#issuecomment-170845201","issue_url":"https://api.github.com/repos/pandao/editor.md/issues/175","id":170845201,"user":{"login":"yalove","id":6695882,"avatar_url":"https://avatars.githubusercontent.com/u/6695882?v=3","gravatar_id":"","url":"https://api.github.com/users/yalove","html_url":"https://github.com/yalove","followers_url":"https://api.github.com/users/yalove/followers","following_url":"https://api.github.com/users/yalove/following{/other_user}","gists_url":"https://api.github.com/users/yalove/gists{/gist_id}","starred_url":"https://api.github.com/users/yalove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yalove/subscriptions","organizations_url":"https://api.github.com/users/yalove/orgs","repos_url":"https://api.github.com/users/yalove/repos","events_url":"https://api.github.com/users/yalove/events{/privacy}","received_events_url":"https://api.github.com/users/yalove/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T09:06:12Z","updated_at":"2016-01-12T09:06:12Z","body":"@pandao 我用的是flask "}}