开发者

How to insert line breaks dbunit dataset

How to insert line break in dbunit dataset? Like this:

    <user id="1" 
story="first line
       second line
       third line"/>

If I do it in this way field story in db appears divided by spaces only but I need a 开发者_JS百科line break.


Upps, I found solution:

<user id="1" 
story="first line&#13;&#10;second line&#13;&#10;third line"/>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜