Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
W
webform-1137348
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Issue forks
webform-1137348
Commits
92fb4c90
Commit
92fb4c90
authored
Nov 11, 2020
by
jrockowitz
Committed by
jrockowitz
Nov 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3181949
by jrockowitz: Allow admin html in the webform_token() Twig function
parent
514309cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/Twig/WebformTwigExtension.php
src/Twig/WebformTwigExtension.php
+2
-1
No files found.
src/Twig/WebformTwigExtension.php
View file @
92fb4c90
...
...
@@ -8,6 +8,7 @@ use Drupal\webform\Element\WebformMessage;
use
Drupal\webform\Utility\WebformElementHelper
;
use
Drupal\webform\Utility\WebformHtmlHelper
;
use
Drupal\webform\Utility\WebformLogicHelper
;
use
Drupal\webform\Utility\WebformXss
;
use
Drupal\webform\Utility\WebformYaml
;
use
Drupal\webform\WebformSubmissionInterface
;
...
...
@@ -132,7 +133,7 @@ class WebformTwigExtension extends \Twig_Extension {
return
''
;
}
return
(
WebformHtmlHelper
::
containsHtml
(
$value
))
?
[
'#markup'
=>
$value
]
:
$value
;
return
(
WebformHtmlHelper
::
containsHtml
(
$value
))
?
[
'#markup'
=>
$value
,
'#allowed_tags'
=>
WebformXss
::
getAdminTagList
()
]
:
$value
;
}
/****************************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment