开发者

How to insert line breaks dbunit dataset

开发者 https://www.devze.com 2022-12-29 22:36 出处:网络
How to insert line break in dbunit dataset? Like this: <user id=\"1\" story=\"first line second line

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

精彩评论

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