I'm attempting to export the content from a div as a .txt file, but all the paragraphs are displaying side by side.
For instance, within the div content, I have the following lines:
<div id="content>
<p>hello</p>
<p>How are you</p>
</div>
The desired output in the .txt file should be:
hello
How are you
However, the actual output appears as:
hello How are you
Here is the jsfiddle link for reference: https://jsfiddle.net/j046xfoy/