Newlines in database converted to HTML break for presentation
Jamroom Developers
I was reading with great interest a discussion close to this topic but it ended without a solution.
https://www.jamroom.net/the-jamroom-network/forum/jamroom-developers/38900/tinymce-inserting-line-breaks-into-some-list-items
One intriguing comment by Michael at the end was:
Quote:
TinyMCE will kindly reformat that so that its more readable
and jamroom will go "Oh, you want an extra line in there and add a BR".
TinyMCE will kindly reformat that so that its more readable
<h1>some big text</h1> <p>then some small text</p>
My question is which function of jamroom replaces the newline with a break? That is, when a comment is retrieved from the db with a newline, who is inserting the break before it is displayed?
Thanks,
TiG
updated by @tig: 10/18/18 05:44:57PM