diff --git a/core/lib/Drupal/Component/Render/FormattableMarkup.php b/core/lib/Drupal/Component/Render/FormattableMarkup.php index caf6a23..eaf14cf 100644 --- a/core/lib/Drupal/Component/Render/FormattableMarkup.php +++ b/core/lib/Drupal/Component/Render/FormattableMarkup.php @@ -138,10 +138,10 @@ public function jsonSerialize() { * @code * $this->placeholderFormat('This will force HTML-escaping of the replacement value: @text', ['@text' => (string) $safe_string_interface_object)); * @endcode - * - %variable: Use when @variable would be appropriate, but the placeholder - * value will also be wrappped in a placeholder class and wrapped in - * tags. As with @variable, do not use within the "<" and ">" of an HTML - * tag, such as in HTML attribute values. Doing so is a security risk. + * - %variable: Use when @variable would be appropriate, but you want the + * placeholder value to be wrapped in em tags. As with @variable, do not + * use within the "<" and ">" of an HTML tag, such as in HTML attribute + * values. Doing so is a security risk. * A call like: * @code * $this->placeholderFormat('Prefix %output_text', ['%output_text' => 'text output.']); @@ -185,11 +185,11 @@ public function jsonSerialize() { * - Insecure: @code link text @endcode * - Insecure: @code link text @endcode * - Insecure: @code link text@endcode - * - The : placeholder should be used for HTML attribute values, but is - * insecure not to have quotes around the attribute value: + * - The : placeholder should be used for HTML "href" attribute values, + * but is insecure not to have quotes around the attribute value: * - Insecure: @code @variable@endcode - * - Only the "href" attribute is supported. So, even other attributes - * which take a URL value are unsupported: + * - Only the "href" attribute is supported. So, other attributes which + * take a URL value are unsupported: * - Insecure: @code @endcode * * @return string