JSFiddle - React, Tailwind, and code Playground

by Regisc

HTML

<div id="notes">
    <table class="noborder">
        <tr><th class="noborder"><span>notes</span></th></tr>
        <tr><td>
            <span id="notes_p">
                
                <p>#1: dhhhhhhfdfffg</p>
                
                <p> qqqqqqqqqqwwwwwwww wweeeeeeeeerr rrrrrrrtt tttttttt</p>
                
                <p>#2: asldkflaksdjflks, lasjdlfjsaldfjasldjfoajsdkfjaslkdjlkfasjdfwoidjfalk,zmncv,mznoqeworjoiejflaksdlfjwaf</p>
            </span>
            </td></tr>
    </table>
</div>
<pre id="result" />

JavaScript

$('#notes_p p').each(function(i, e) {
    $('#result').html($('#result').html() + "\n" + $(e).html());
});