I'm trying to insert string(varchar) to my postgres database, which include new line tag, understandable to browser (I have to display this string in my web app).
I've tried using Escape Sequences like E'First Line\nSecond line', but it doesn't worked.
I've tried too using functions like split_part().
How can I achive effect from this:
'1. Lorem ipsum dolor sit amet 2. Lorem ipsum dolor sit amet 3.Lorem ipsum dolor sit amet'
To this:
'1. Lorem ipsum dolor sit amet
2. Lorem ipsum dolor sit amet
3. Lorem ipsum dolor sit amet'
I'am using PostgreSQL 9.6.
Any ideas?