Skip to content
Snippets Groups Projects
Commit 058b75e0 authored by Jared Hancock's avatar Jared Hancock
Browse files

html: Keep style attribute for videos

parent 02cb791b
No related branches found
No related tags found
No related merge requests found
......@@ -288,7 +288,7 @@ class Format {
'schemes' => 'href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; *:file, http, https; src: cid, http, https, data',
'hook_tag' => function($e, $a=0) { return Format::__html_cleanup($e, $a); },
'elements' => '*+iframe',
'spec' => 'iframe=-*,height,width,type,src(match="`^(https?:)?//(www\.)?(youtube|dailymotion|vimeo)\.com/`i"),frameborder'.($spec ? '; '.$spec : ''),
'spec' => 'iframe=-*,height,width,type,style,src(match="`^(https?:)?//(www\.)?(youtube|dailymotion|vimeo)\.com/`i"),frameborder'.($spec ? '; '.$spec : ''),
);
return Format::html($html, $config);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment