Extracting work reports from Freshbook timesheets

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.

-Jörn

No more comments.
  1. Useful sharing. Thanks for sharing.