I have a file json that in its content it contains paragraphs . These paragraphs are separated by \n
but when I insert content the paragraphs are not separated and instead of line break I have a space in DIV
. In my view my solution would be to convert \n
to line breaks that HTML
understands ( <p>
or <br>
). What is the right method to use?