How do I allow line breaking in textarea input in django to later show this input on page?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
linebreaks
Replaces line breaks in plain text with appropriate HTML; a single newline becomes an HTML line break (
<br />) and a new line followed by a blank line becomes a paragraph break (</p>).For example:
{{ value|linebreaks }}If value is
Joel\nis a slug, the output will be<p>Joel<br />is a slug</p>.