I came across a requirement where i have to store paragraphs of data (not huge maximum of 5 paragraphs) in database, i have kept the column as TEXT. while insertion every thing is going fine it is storing as paragraphs(saw that in database). but while retrieving it is trimming all the spaces between the paragraph's and giving it as a single string. i read somewhere that we have to get the text as CLOB i tried that but it is also not working. below is the code.
What character is being used to distinguish a paragraph? Also, where are you seeing it with the "paragraphs" removed? As a hint to move you in the right direction, possibly...
If you're storing the text in the database with a new line character and then trying to display that text on a web page, HTML doesn't know anything about new line characters unless they are in HTML format. The difference between
Or better yet
The first example will not render as you expect in HTML. The second 2 examples will.