So! I wants to use # symbol in the middle of text as link of a tag. I have searched about this problem but unable to find solution
Basically I'm trying to download a string using javascript which is just a csv string. I wants to download that string as a csv file.
I'm using the code below to achieve that but symbole "#" is casing issue because it is terminating rest of the string because that is how href works
csvContent = "data:text/csv;charset=utf-8,sep=;
a;b;c#;d;e;f "
var encodedUri = encodeURI(csvContent);
window.location = encodedUri
In above code, ";d;e;f" will be ignored and file will not be downloaded completely
Can anyone please help me to download string which includes # in it as text file?