From the (just created) category of the “Public Notebook”, aka things I don’t want to write again and may come in handy for someone else.
Here I needed to extract a column of text from a table in Freshbooks, to copy the timesheet descriptions into another document. A little bit of jQuery helps to get the job done quickly:
$('tbody td.text_wrap').map(function() {
return $(this).text();
}).get().join("\n")
If we’d use text()
directly on the selection, we couldn’t insert the line breaks.
That’s all.
Useful sharing. Thanks for sharing.