Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

convert new lines to empty <p> tags

Ginger Wong281a32431214
diff --git a/webroot/js/components/chat/chat-message-view.js b/webroot/js/components/chat/chat-message-view.js
index 0016379121..4eff92ab84 100644
--- a/webroot/js/components/chat/chat-message-view.js
+++ b/webroot/js/components/chat/chat-message-view.js
@@ -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) {