Commit 8b171543 authored by Nicole Cordes's avatar Nicole Cordes Committed by Helmut Hummel
Browse files

[BUGFIX] Allow span tags in fieldInformation return

To be able to improve the layout of field information, the span tag is
added to the list of allowed tags in html.

Resolves: #84633
Releases: master, 8.7
Change-Id: If3a60002cb8b7a7473e96820bdb35ac9c8111bab

Tested-by: default avatarTYPO3com <>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
Reviewed-by: Oliver Klee's avatarOliver Klee <>
Reviewed-by: Helmut Hummel's avatarHelmut Hummel <>
Tested-by: Helmut Hummel's avatarHelmut Hummel <>
parent c6e4598d
......@@ -66,7 +66,7 @@ class FieldInformation extends AbstractNode
$options['renderData']['fieldInformationOptions'] = $orderedFieldInformationConfiguration['options'] ?? [];
$informationResult = $this->nodeFactory->create($options)->render();
$allowedTags = '<a><br><br/><div><em><i><p><strong>';
$allowedTags = '<a><br><br/><div><em><i><p><strong><span>';
if (strip_tags($informationResult['html'], $allowedTags) !== $informationResult['html']) {
throw new \RuntimeException(
'The field information API supports only a limited number of HTML tags within the result'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment