I\'ve stored a string in the database. When I save and retrieve the string and the result I\'m getting is as following:
This is my new object
Firstly make sure the string contains \n to denote line break. For example :
String test = "This is first line. \n This is second line";
Then in gsp page use:
${raw(test?.replace("\n", ""))}
The output will be as:
This is first line. This is second line.