django TextFeild print as a text Area
When printing django TextFeild without <p> </p> tag encoding it will display just as a sentance without <br/> , \n ,\r ( breaks , newlines)
However text area can encoded with <p> </p> and supported with linebreaks which result the paragrh with expected breaks and newlines
<p>
{{ post.song |linebreaks }}
</p>
However text area can encoded with <p> </p> and supported with linebreaks which result the paragrh with expected breaks and newlines
<p>
{{ post.song |linebreaks }}
</p>
Comments
Post a Comment