If someone enters a phrase, for example:
I see you driving round town with the girl I love, and I'm like: haiku.
(there are no blank lines between each line, but the text is written on three separate lines) in the text field on the web page, and then presses a button, which is then saved in the database via Django , and this line is read and printed on the page, as I can make it print on html page with new characters in text?
So instead of typing back: I see you driving round town with the girl I love, and I'm like: haiku.
It will print as:
I see you driving round town with the girl I love, and I'm like: haiku.
I know that if I use: (textarea)soAndSo.body(/textarea) , this saves new lines that were in the file when the user entered it initially. How can I get the same effect, but without using textarea blocks?
python html django newline
user1801486
source share