Export mangled if data includes hashtag (#) in it
Closed this issue · 1 comments
tripflex commented
My assumption is this may be due to injecting the data into a link, but if your JSON has a hashtag (#
) in it, the downloaded file is mangled and cuts off at that point.
Example:
{
"section":{
"color":"#ccc",
"label":"something"
}
}
The file output will be
{"section":{"color":"
tripflex commented
Looks like using encodeURIComponent
should resolve this, i'll submit a PR