drupal 8 HTML in type link
snippet in html

drupal 8 HTML in type link

user6980

$link = [
  '#type' => 'link',
  '#title' => [
      '#type' => 'inline_template',
      '#template' => '{{ title }} <span class="icon-right-arrow"></span>',
      '#context' => [
        'title' => $title
      ],
  ],
  '#url' => Url::fromRoute('user.pass'),
];