Agaric Collective: Pass variables without escaping nor sanitizing to t() in Drupal 8

In Drupal 7 it was useful to do things like this: 

function mymodule_content() {
  $links[] = l('Google', '');
  $links[] = l('Yahoo', '');
  return t('Links: !types', array('!types' => implode(', ', $links)));

In this case, we are using the exclamation mark to pass the $links into our string but unfortunately, Drupal 8 doesn’t have this option in the FormattableMarkup::placeholderFormat(), the good news is that even without this there is a way to accomplish the same thing. 

Read more and discuss at