format_string($string, array $args)
Formats a string for HTML display by replacing variable placeholders.
in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal\Component\Render\FormattableMarkup.
\Drupal\Component\Render\FormattableMarkup::placeholderFormat()
\Drupal\Component\Render\FormattableMarkup
t()
function format_string($string, array $args) { return SafeMarkup::format($string, $args); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!bootstrap.inc/function/format_string/8.1.x