JSFiddle - React, Tailwind, and code Playground

by Timatnet

HTML

<body>
    <div class="csv-output"></div>
<p class="p2"><span class="s1"><b>activity-based cost (ABC)</b>accounting procedures that can quantify the true profitability of different activities by identifying their actual costs.<span class="Apple-converted-space"> </span></span></p>
<p class="p2"><span class="s1"><b>adoption</b>an individual’s decision to become a regular user of a product.<span class="Apple-converted-space"> </span></span></p>
<p class="p2"><span class="s1"><b>advertising</b>any paid form of nonpersonal presentation and promotion of ideas, goods, or services by an identified sponsor.<span class="Apple-converted-space"> </span></span></p>
<p class="p2"><span class="s1"><b>advertising objective</b>a specific communications task and achievement level to be accomplished with a specific audience in a specific period of time.<span class="Apple-converted-space"> </span></span></p>
<p class="p2"><span class="s1"><b>anchoring and adjustment heuristic</b>when consumers arrive at an initial judgment and then make adjustments of their first impressions based on additional information.<span class="Apple-converted-space"> </span></span></p>
<p class="p2"><span class="s1"><b>arm’s-length price</b>the price charged by other competitors for the same or a similar product.<span class="Apple-converted-space"> </span></span></p>
<p class="p2"><span class="s1"><b>aspirational groups</b>groups a person hopes or would like to join.<span class="Apple-converted-space"> </span></span></p>
<p class="p2"><span class="s1"><b>associative network memory model</b>a conceptual representation that views memory as consisting of a set of nodes and interconnecting links where nodes represent stored information or concepts and links represent the strength of association between this information or concepts.<span class="Apple-converted-space"> </span></span></p>
<p class="p2"><span class="s1"><b>attitude</b>a person’s enduring favorable or unfavorable evaluation, emotional feeling, and...

JavaScript

$('.s1').each(function() {
    $('.csv-output')
        .append($(this).children('b'))
        .append(',')
        .append($(this).text())
        .append('<br/>');
});