How to insert dbunit dataset line breaks

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

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

If I do this like this, the field history in db will only be divided by spaces, but I need a line break.

+3
source share
1 answer

Upps, I found a solution:

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

Source: https://habr.com/ru/post/1744328/


All Articles