Add support for HTML5 video inside feeds
This commit is contained in:
parent
f004aa3ab0
commit
00823c90d6
@ -596,7 +596,8 @@ section li {
|
|||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
video,
|
||||||
iframe {
|
iframe {
|
||||||
max-width: 95%;
|
max-width: 98%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,7 @@ Router\before(function($action) {
|
|||||||
|
|
||||||
// HTTP secure headers
|
// HTTP secure headers
|
||||||
Response\csp(array(
|
Response\csp(array(
|
||||||
|
'media-src' => '*',
|
||||||
'img-src' => '*',
|
'img-src' => '*',
|
||||||
'frame-src' => implode(' ', array(
|
'frame-src' => implode(' ', array(
|
||||||
'http://www.youtube.com',
|
'http://www.youtube.com',
|
||||||
|
2
vendor/PicoFeed/Filter.php
vendored
2
vendor/PicoFeed/Filter.php
vendored
@ -11,6 +11,8 @@ class Filter
|
|||||||
private $strip_content = false;
|
private $strip_content = false;
|
||||||
|
|
||||||
public $allowed_tags = array(
|
public $allowed_tags = array(
|
||||||
|
'video' => array('poster', 'controls', 'height', 'width', 'src'),
|
||||||
|
'source' => array('src', 'type'),
|
||||||
'dt' => array(),
|
'dt' => array(),
|
||||||
'dd' => array(),
|
'dd' => array(),
|
||||||
'dl' => array(),
|
'dl' => array(),
|
||||||
|
Loading…
Reference in New Issue
Block a user