add allowfullscreen to iframe (#8467)

With the "allowfullscreen" attribute it's possible to view an embedded video in full screen.
This commit is contained in:
Luca Olivetti
2026-01-28 08:28:23 +01:00
committed by GitHub
parent 0df3a3c51c
commit bb786f4ade

View File

@@ -114,7 +114,7 @@ final class FreshRSS_SimplePieCustom extends \SimplePie\SimplePie
'hgroup' => [],
'hr' => ['align', 'noshade', 'size', 'width'],
'i' => [],
'iframe' => ['src', 'align', 'frameborder', 'longdesc', 'marginheight', 'marginwidth', 'scrolling'],
'iframe' => ['src', 'align', 'frameborder', 'longdesc', 'marginheight', 'marginwidth', 'scrolling', 'allowfullscreen'],
'image' => ['src', 'alt', 'width', 'height', 'align', 'border', 'hspace', 'longdesc', 'vspace'],
'img' => ['src', 'alt', 'width', 'height', 'align', 'border', 'hspace', 'longdesc', 'vspace'],
'ins' => ['cite', 'datetime'],
@@ -220,6 +220,7 @@ final class FreshRSS_SimplePieCustom extends \SimplePie\SimplePie
'iframe' => [
'allow' => 'accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share',
'sandbox' => 'allow-scripts allow-same-origin',
'allowfullscreen' => 'allowfullscreen',
],
'video' => ['controls' => 'controls', 'preload' => 'none'],
]);