Allow markup inside drupal 8 Link function I always try to use the core functions for linking in drupal, but I'm not able to add html markup like &lt;a href="..."&gt;&lt;span&gt;Link text&lt;/span&gt;&lt;/a&gt;. Any ideas?
Use the Markup class:     

use Drupal\Core\Link;
use Drupal\Core\Url;
use Drupal\Core\Render\Markup;

$url = Url::fromUri('http://www.example.com');     
$linkText = 'My link &lt;br&gt; containing tags';
$linkMarkup = Markup::create($linkText);
$link = Link::fromTextAndUrl($linkMarkup, $url);
$link = $link-&gt;toRenderable();