convert new lines to empty <p> tags
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user