This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// This is a modified version of the script Davin Studer from | |
// http://iamdav.in/2014/10/24/bookmarklet-creating-csv-html-table/ | |
// I added in a BOM mark to allow for non-english table contents export as well as | |
// wrapped it in a script snippet to be appended at them end of a confluence page in a html block | |
function downloadCSVFile(filename, mime, text) { | |
if (window.navigator.msSaveOrOpenBlob){ | |
// IE 10+ | |
var blob = new Blob([decodeURIComponent(encodeURI(text))], { | |
type: 'text/csv;charset=utf-8' |