Loading core/lib/Drupal/Component/Render/FormattableMarkup.php +4 −4 Original line number Diff line number Diff line Loading @@ -124,10 +124,10 @@ public function jsonSerialize(): string { * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>, ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>, ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>, ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>, ['@foo' => $some_variable]); * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode Loading Loading
core/lib/Drupal/Component/Render/FormattableMarkup.php +4 −4 Original line number Diff line number Diff line Loading @@ -124,10 +124,10 @@ public function jsonSerialize(): string { * Insecure examples. * @code * // The following are using the @ placeholder inside an HTML tag. * $this->placeholderFormat('<@foo>text</@foo>, ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>, ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>, ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>, ['@foo' => $some_variable]); * $this->placeholderFormat('<@foo>text</@foo>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a @foo>link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a href="@foo">link text</a>', ['@foo' => $some_variable]); * $this->placeholderFormat('<a title="@foo">link text</a>', ['@foo' => $some_variable]); * // Implicitly convert an object to a string, which is not sanitized. * $this->placeholderFormat('Non-sanitized replacement value: @foo', ['@foo' => $safe_string_interface_object]); * @endcode Loading