convert new lines to empty <p> tags

This commit is contained in:
Ginger Wong 2021-08-18 17:59:42 -07:00
parent 638fd111e8
commit 81ecb9a379

View file

@ -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) {