mirror of
https://github.com/owncast/owncast.git
synced 2025-02-01 05:03:51 +03:00
convert new lines to empty <p> tags
This commit is contained in:
parent
638fd111e8
commit
81ecb9a379
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue