Tagged "html"

Copy an HTML table as CSV

I’ve found myself having to copy some HTML tables repeatedly, and since it was an annoying operation, I decided to create my bookmarklet to automate the process. How does it work? Select any text in the HTML table Click the bookmark Paste the CSV result where you want it If you don’t trust me, use the following code to build the bookmarklet yourself. function download_table_as_csv(separator = ',') { // Select rows from table_id var s = window.

Read more...