If you just want to covertconvert a string to be available for download you can try this using jQuery.
$('a.download').attr('href', 'data:application/csv;charset=utf-8,' + encodeURI(data)); Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack InternalIf you just want to covertconvert a string to be available for download you can try this using jQuery.
$('a.download').attr('href', 'data:application/csv;charset=utf-8,' + encodeURI(data)); If you just want to covert a string to be available for download you can try this using jQuery.
$('a.download').attr('href', 'data:application/csv;charset=utf-8,' + encodeURI(data)); If you just want to convert a string to be available for download you can try this using jQuery.
$('a.download').attr('href', 'data:application/csv;charset=utf-8,' + encodeURI(data)); If you just want to covert a string to be available for download you can try something like this in angularjs using jqueryjQuery.
$('a.download').attr('href', 'data:application/csv;charset=utf-8,'+$scope.' + encodeURI(data)); If you just want to covert a string to be available for download you can try something like this in angularjs using jquery.
$('a.download').attr('href', 'data:application/csv;charset=utf-8,'+$scope.data); If you just want to covert a string to be available for download you can try this using jQuery.
$('a.download').attr('href', 'data:application/csv;charset=utf-8,' + encodeURI(data));