JSFiddle - React, Tailwind, and code Playground

by KyleMuir

HTML

<div id="pain">here is some line breaks.

</div>

JavaScript

console.log($.trim($('#pain').text()));