Add support for HTML5 video inside feeds

This commit is contained in:
Frederic Guillot 2013-07-22 20:23:57 -04:00
parent f004aa3ab0
commit 00823c90d6
3 changed files with 5 additions and 1 deletions

View File

@ -596,7 +596,8 @@ section li {
font-size: 0.85em; font-size: 0.85em;
} }
video,
iframe { iframe {
max-width: 95%; max-width: 98%;
} }
} }

View File

@ -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',

View File

@ -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(),