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
Branches
Tags
4 merge requests!11958Issue #3490507 by alexpott, smustgrave: Fix bogus mocking in...,!11769Issue #3517987: Add option to contextual filters to encode slashes in query parameter.,!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...
Pipeline #262076 passed with warnings
Pipeline: drupal

#262083

    ......@@ -16,8 +16,8 @@
    * - #tag: The tag name to output.
    * - #attributes: (array, optional) HTML attributes to apply to the tag. The
    * attributes are escaped, see \Drupal\Core\Template\Attribute.
    * - #value: (string, optional) A string containing the textual contents of
    * the tag.
    * - #value: (string|MarkupInterface, optional) The textual contents of the tag.
    * Strings will be XSS admin filtered.
    * - #noscript: (bool, optional) When set to TRUE, the markup
    * (including any prefix or suffix) will be wrapped in a <noscript> element.
    *
    ......@@ -29,6 +29,8 @@
    * '#value' => $this->t('Hello World'),
    * ];
    * @endcode
    *
    * @see \Drupal\Component\Utility\Xss::filterAdmin().
    */
    #[RenderElement('html_tag')]
    class HtmlTag extends RenderElementBase {
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment