We have a text box in this we are allowing 100 characters per line and saving to DB. Here our problem is that if a user writes 50 characters, presses enter to insert a newline and then repeats this procedure with 40 then 30 then 20 etc. characters per line it's saving like continues in single line.
Ex : user enter given following
The integration system test environment
is also the first environment
where testers can simulate real attack
scenarios as can be potentially executed
by a malicious, external or internal user of the application
but when saving into our DB it's saving like following.
The integration system test environment is also the first environment where testers can simulate real attack scenarios as can be potentially executed by a malicious, external or internal user of the application.
We are disabling by default all html tags only we need to display text as user given by adding automatic "br".