| @@ -171,9 +171,10 @@ | ||
| 171 | 171 | $parsedContent = self::get_content_from_template($url, $embedTemplate); |
| 172 | 172 | // Replace all single quotes to double quotes. I.e: foo='joe' -> foo="joe" |
| 173 | 173 | $parsedContent = str_replace( "'", '"', $parsedContent ); |
| 174 | 174 | $parsedContent = str_replace( "{provider_alias}", $provider_name , $parsedContent ); |
| 175 | - $parsedContent = str_replace( 'sandbox="allow-scripts"', 'sandbox="allow-scripts allow-same-origin"', $parsedContent ); | |
| 175 | + $parsedContent = str_replace( 'sandbox="allow-scripts"', 'sandbox="allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"', $parsedContent ); | |
| 176 | + $parsedContent = str_replace( '<iframe ', '<iframe allowFullScreen="true" ', $parsedContent ); | |
| 176 | 177 | |
| 177 | 178 | self::purify_html_content( $parsedContent); |
| 178 | 179 | self::modify_content_for_fb_and_canada( $provider_name, $parsedContent); |
| 179 | 180 | unset( $embedTemplate, $serviceProvider ); |