mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
convert new lines to empty <p> tags
This commit is contained in:
parent
638fd111e8
commit
81ecb9a379
@ -183,7 +183,7 @@ function formatTimestamp(sentAt) {
|
||||
text into the `contenteditable` area on a page.
|
||||
*/
|
||||
function convertToMarkup(str = '') {
|
||||
return str; // convertToText(str).replace(/\n/g, '<br>');
|
||||
return convertToText(str).replace(/\n/g, '<p></p>');
|
||||
}
|
||||
|
||||
function stripTags(str) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user