Project

General

Profile

Actions

Bug #95152

closed

Epic #95236: Backend UI layout issues

CSH: field content rendering issue

Added by Davide Alghi about 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2021-08-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
context sensitive help, rendering, content
Complexity:
Is Regression:
Sprint Focus:

Description

"Context Sensitive Help" doesn't correctly render HTML tags for field help content: see image
TYPO3 v9, v10 and v11

My proposal

in
https://github.com/TYPO3/typo3/blob/5b56d87f9730aba4774bf5ff9888b6f7459e74ac/typo3/sysext/backend/Resources/Private/Partials/ContextSensitiveHelp/Manual.html#L7

replace
<p>{manual.content -> f:format.htmlentities() -> f:format.raw()}</p>

with
<p>{manual.content -> f:format.stripTags(allowedTags:'<strong><em><b><i>') -> f:format.nl2br()}</p>


Files

cshFieldContentRenderIssue.png (84.7 KB) cshFieldContentRenderIssue.png Davide Alghi, 2021-09-08 14:01
Actions

Also available in: Atom PDF