Project

General

Profile

Actions

Bug #94917

closed

styles.content.allowTags not working, renderd iframe as <iframe>

Added by Peter Friesen over 3 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-08-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
sanitizeHtml, html-sanitizer
Complexity:
Is Regression:
Sprint Focus:

Description

I run a small news website. I sometimes put iframe html-code in tx_news articles.

With TYPO3 10.4.19

<iframe src="..."></iframe>

will be transformed into
&lt;iframe src=&quot;...&quot;&gt;&lt;/iframe&gt;

after saving the article in ckeditor.

Since TYPO3 10.4.20, the iframe-code will be saved correctly in the editor. But unfortunately it is still rendering incorrectly on the homepage.

I have following in my template constants. I successfully checked it with TypoScript-Object-Browser.

styles.content.allowTags:= addToList(iframe)

In ckeditor preset yaml i have this (excerpt):
processing:
  allowTags:
    - iframe
    - img

editor:
    config:
        extraAllowedContent: "iframe,img" 

It seems to be an additional problem with htmlSanitize.

Thanks :)


Files


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #95903: iFrame is escaped in output since version 10.4.18?Closed2021-11-08

Actions
Actions

Also available in: Atom PDF