Hi There
I used the code
$output .= html_writer::link($url, 'click me', str_replace('=""','',array('download'=>'')));
in order to get the result
<a href="the url" download>click me</a>
Is there a simpler way?
What I did was to get this
<a href="the url" download="">click me</a>
and then using the str_replace() to replace the ="" with nothing, giving
<a href="the url" download>click me</a>
After 30 minutes of searching for a solution, I gave up and used my str_replace() function to brute force what I wanted. Haha. There must be a better and easier way. Anyone?
Regards
Frankie Kam