Skip to content
Snippets Groups Projects
Verified Commit af2a2c5a authored by Dave Long's avatar Dave Long
Browse files

Issue #3215627 by guilhermevp, varshith, rahulkhandelwal1990, ilgnerfagundes,...

Issue #3215627 by guilhermevp, varshith, rahulkhandelwal1990, ilgnerfagundes, ankithashetty, pragati_kanade, quietone, thiagorw, cilefen, mrclay, larowlan: HtmlTag doc should be clear about escaping of #value

(cherry picked from commit 11996c7a)
parent b0a4cd3e
No related branches found
No related tags found
2 merge requests!11185Issue #3477324 by andypost, alexpott: Fix usage of str_getcsv() and fgetcsv() for PHP 8.4,!9944Issue #3483353: Consider making the createCopy config action optionally fail...
Checking pipeline status
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
* - #tag: The tag name to output. * - #tag: The tag name to output.
* - #attributes: (array, optional) HTML attributes to apply to the tag. The * - #attributes: (array, optional) HTML attributes to apply to the tag. The
* attributes are escaped, see \Drupal\Core\Template\Attribute. * attributes are escaped, see \Drupal\Core\Template\Attribute.
* - #value: (string, optional) A string containing the textual contents of * - #value: (string|MarkupInterface, optional) The textual contents of the tag.
* the tag. * Strings will be XSS admin filtered.
* - #noscript: (bool, optional) When set to TRUE, the markup * - #noscript: (bool, optional) When set to TRUE, the markup
* (including any prefix or suffix) will be wrapped in a <noscript> element. * (including any prefix or suffix) will be wrapped in a <noscript> element.
* *
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
* '#value' => $this->t('Hello World'), * '#value' => $this->t('Hello World'),
* ]; * ];
* @endcode * @endcode
*
* @see \Drupal\Component\Utility\Xss::filterAdmin().
*/ */
#[RenderElement('html_tag')] #[RenderElement('html_tag')]
class HtmlTag extends RenderElementBase { class HtmlTag extends RenderElementBase {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment