Fish Wang says to YSITD
.replace(/([^\r\n]+)/g, '<p>$1</p>') another way