How to get a comment from the database?

Hey all, had a question - how correctly to take from a field the text that the user wrote? The fact that the user can wrap text to the next line. How to take and display the text the way he wrote, that is, with all tabs, hyphenation?
July 8th 19 at 15:21
3 answers
July 8th 19 at 15:23
In the simplest case, the tag PRE -
July 8th 19 at 15:25
July 8th 19 at 15:27
You can use a simple wysiwyg editor. Assume the same as here, find and configure it for 5-10 minutes.
And let is formatted as an html.

You can parse the textarea on the server, before you enter into the database
replaceable \n, \n,\r, \t and \r for what you need.

As mentioned above tag pre

Find more questions by tags PHPMySQL