Fish Wang says to YSITD
replace(/\r?\n/g, '<br>')阿