On the site from <textarea> take text with line breaks. In postgresql it is inserted in one line. How to insert text into a database with line breaks from <textarea> ?
|
On the site from <textarea> take text with line breaks. In postgresql it is inserted in one line. How to insert text into a database with line breaks from <textarea> ?
Source: https://ru.stackoverflow.com/questions/626611/
All Articles
postgresql. - Alex Krass$("#input").val( )just receives the string and by itself inserts nothing. And even more so, JS on the client does not know how to work with the database, there should at least be another layer of server code. For the solution, you are interested in the complete code stack from the beginning to the end, including how you check. At least a minimal example, otherwise it turns out that you have to guess that you have one of a thousand options. - Alex Krass