Welcome! » Log In » Create A New Profile

HTML Purifier removes YouTube allowfullscreen bool

Posted by darko 
HTML Purifier removes YouTube allowfullscreen bool
January 17, 2016 04:47AM

Hi,

I am trying to add YouTube support through TinyMCE, but no matter what config options set, HTML Purifier always removes 'allowfullscreen' bool from the iframe string. Since there are many custom class solutions from 2011 on the net, I really try to avoid using that approach. Is this solved in 2015/6? Whatever solution I tested, still the same result. TinyMCE is formatting boolean value as: allowfullscreen="allowfullscreen".

This is my base config:

$config->set('HTML.SafeIframe', true); $config->set('URI.SafeIframeRegexp', '%%'); // tried different things, does not help

Same goes for frameborder="0", which is also removed, but I can fix this via CSS. The only things preserved are width and height.

Is there a native support for this in HTML Purifier and how can we do it?

Thanks

Author:
Your Email:

Subject:

HTML input is enabled. Make sure you escape all HTML and angled brackets with < and >.

Auto-paragraphing is enabled. Double newlines will be converted to paragraphs; for single newlines, use the pre tag.

Allowed tags: a, abbr, acronym, b, blockquote, caption, cite, code, dd, del, dfn, div, dl, dt, em, i, ins, kbd, li, ol, p, pre, s, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var.

For inputting literal code such as HTML and PHP for display, use CDATA tags to auto-escape your angled brackets, and pre to preserve newlines:

<pre><![CDATA[
Place code here
]]></pre>

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}

Message: