JSFiddle - React, Tailwind, and code Playground
by KyleMuir
HTML
<div id="pain">here is some line breaks.
</div>
JavaScript
console.log($.trim($('#pain').text()));
by KyleMuir
<div id="pain">here is some line breaks.
</div>
console.log($.trim($('#pain').text()));