4,456
edits
No edit summary |
No edit summary Tag: Reverted |
||
Line 6: | Line 6: | ||
function formatParagraphs(text) { | 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 | ||
function formatCommunityCardDescriptions() { | function formatCommunityCardDescriptions() { |