From 48eabc060fbdb0da875605600824a2f45da730fc Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 8 Jul 2014 15:13:01 +0100 Subject: [PATCH] Issue #2036611 by er.pushpinderrana, droplet: Fix drupal_placeholder doc. --- core/lib/Drupal/Component/Utility/String.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/lib/Drupal/Component/Utility/String.php b/core/lib/Drupal/Component/Utility/String.php index 9796a5fc0183..2a3ae58ed670 100644 --- a/core/lib/Drupal/Component/Utility/String.php +++ b/core/lib/Drupal/Component/Utility/String.php @@ -74,7 +74,10 @@ public static function decodeEntities($text) { * - @variable: Escaped to HTML using String::checkPlain(). Use this as the * default choice for anything displayed on a page on the site. * - %variable: Escaped to HTML and formatted using String::placeholder(), - * which makes it display as <em>emphasized</em> text. + * which makes the following HTML code: + * @code + * <em class="placeholder">text output here.</em> + * @endcode * - !variable: Inserted as is, with no sanitization or formatting. Only use * this for text that has already been prepared for HTML display (for * example, user-supplied text that has already been run through -- GitLab