In relation to Drupal 8 ... if a user wanted to create a link such as the following:
<a href='#' onClick='testfunction ();'>link</a>
How could such a link be created, normally creating a link requires the use of the Url object and so the symbol '#' can't normally be used, nor can 'javascript:void (0)'.
Essentially I'm trying to create an link with an anchor tag in it.
Thanks.