Home > Q&A > body text
Like the question, how can it be correctly parsed into newline characters
phpcn_u15822017-06-26 10:51:44
I don’t know how you get it. Wouldn’t it be ok to replace <br/> with n? str.replace(/<br/>/ig, 'n')
<br/>
n
str.replace(/<br/>/ig, 'n')