Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!9138
update doc
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
update doc
issue/drupal-3215627:3215627-htmltag-doc-should
into
11.x
Overview
0
Commits
1
Pipelines
1
Changes
1
Closed
quietone
requested to merge
issue/drupal-3215627:3215627-htmltag-doc-should
into
11.x
8 months ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
Closes
#3215627
0
0
Merge request reports
Compare
11.x
11.x (base)
and
latest version
latest version
a7ea52a3
1 commit,
8 months ago
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/lib/Drupal/Core/Render/Element/HtmlTag.php
+
4
−
2
Options
@@ -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 t
he textual contents of
*
the tag
.
* - #value: (string
|MarkupInterface, optional) T
he 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
{
Loading