This is an example of a collapse element with an inline link.
[expand title="this is a test with a <a href='https://plugins.twinpictures.de'>link</a>"]here is some hidden content[/expand]
the key is to use double quotes to wrap the title attribute and single quotes for the html inside the double quotes.
this is a test with a link
here is some hidden content