4,435
edits
No edit summary |
No edit summary |
||
Line 178: | Line 178: | ||
$(this).css('overflow-y', 'hidden'); | $(this).css('overflow-y', 'hidden'); | ||
}); | }); | ||
function formatParagraphs(text) { | |||
var paragraphs = text.split('\n').filter(p => p.trim() !== ''); | |||
return paragraphs.map(p => '<p>' + p.trim() + '</p>').join(''); | |||
} | |||
// Description formatting for Community Cards | // Description formatting for Community Cards |