use Markup in Drupal use Drupal\Core\Render\Markup; PHP Code $html_code = " <p> ✕ </p> "; $link_with_html = Link::createFromRoute( Markup::create( $html_code ), 'my_module')->toString(); Drupal Markup Neuen Kommentar schreiben Ihr Name Betreff Comment Hilfe zum Textformat CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Leave this field blank
Neuen Kommentar schreiben