HTML View Postgresql TextArea render line breaks or paragraphs -python flask

Roman

I have a TextAreaField where a user can write something, but when I render this TextArea in HTML the Text has no linebreaks. But in the DB it is saved correctly.

User Input before it is saved in the DB:

enter image description here

TextArea in DB:

enter image description here

How the text is rendered from the DB:

enter image description here

I am working with Flask WTForms and that is my form field:

infofeld = TextAreaField('Beschreibung')

That is the code where I render it. The Columns in the DB is named "infofeld":

<p class="text"> {{ detail_room.infofeld }} </p>
Roman Tkachuk

Text in db stored with just "\n" as symbol of new line. But html can show such text with new line with PRE tags: <PRE>...</PRE> . Or you can change \n to <br> or <p>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Render line breaks entered in textarea

From Dev

How to render line breaks from JSON to HTML

From Dev

Jinja render text in HTML preserving line breaks

From Dev

Format string with line breaks into paragraphs

From Dev

How to initialize CKEditor textarea line breaks as like html textarea line breaks

From Java

Preserve line breaks in textarea

From Dev

Ripping off HTML tags and considering line breaks in a textarea

From Dev

Ripping off HTML tags and considering line breaks in a textarea

From Dev

Copy a textarea value into a div keeping line breaks and html as text

From Dev

Convert (render) HTML to Text with correct line-breaks

From Dev

Angularjs textarea not processing line breaks

From Dev

append text to a textarea with line breaks

From Dev

AngularJS Render HTML in textarea

From Dev

Meteor: How to render line breaks?

From Dev

Display textfield with line breaks in Flask

From Dev

Display textfield with line breaks in Flask

From Dev

python flask render_template html did not render correctly

From Dev

How can I explicitly show line breaks as "\n" inside a HTML <textarea> tag?

From Java

php / regex convert multiple paragraphs to one paragraph with line breaks

From Dev

flexible height of <textarea> as a new line breaks

From Java

React display line breaks from saved textarea

From Dev

Textarea ignoring multiple line breaks at beginning

From Dev

Copying text of textarea into div with line breaks

From Dev

line breaks showing up as \r\n in textarea

From Dev

Keep line breaks with jQuery .text() in textarea

From Dev

How to get line breaks from textarea

From Dev

Remove line-breaks and spaces from textarea

From Dev

Getting textarea to count line breaks properly

From Dev

How to get line breaks from textarea

Related Related

  1. 1

    Render line breaks entered in textarea

  2. 2

    How to render line breaks from JSON to HTML

  3. 3

    Jinja render text in HTML preserving line breaks

  4. 4

    Format string with line breaks into paragraphs

  5. 5

    How to initialize CKEditor textarea line breaks as like html textarea line breaks

  6. 6

    Preserve line breaks in textarea

  7. 7

    Ripping off HTML tags and considering line breaks in a textarea

  8. 8

    Ripping off HTML tags and considering line breaks in a textarea

  9. 9

    Copy a textarea value into a div keeping line breaks and html as text

  10. 10

    Convert (render) HTML to Text with correct line-breaks

  11. 11

    Angularjs textarea not processing line breaks

  12. 12

    append text to a textarea with line breaks

  13. 13

    AngularJS Render HTML in textarea

  14. 14

    Meteor: How to render line breaks?

  15. 15

    Display textfield with line breaks in Flask

  16. 16

    Display textfield with line breaks in Flask

  17. 17

    python flask render_template html did not render correctly

  18. 18

    How can I explicitly show line breaks as "\n" inside a HTML <textarea> tag?

  19. 19

    php / regex convert multiple paragraphs to one paragraph with line breaks

  20. 20

    flexible height of <textarea> as a new line breaks

  21. 21

    React display line breaks from saved textarea

  22. 22

    Textarea ignoring multiple line breaks at beginning

  23. 23

    Copying text of textarea into div with line breaks

  24. 24

    line breaks showing up as \r\n in textarea

  25. 25

    Keep line breaks with jQuery .text() in textarea

  26. 26

    How to get line breaks from textarea

  27. 27

    Remove line-breaks and spaces from textarea

  28. 28

    Getting textarea to count line breaks properly

  29. 29

    How to get line breaks from textarea

HotTag

Archive