You appear to be a bot. Output may be restricted
Description
Usage
Tests_Filter_oEmbed_Result::test_filter_oembed_result_trusted_malicious_iframe();
Parameters
Returns
void
Source
File name: wordpress-develop-tests/phpunit/tests/oembed/filterResult.php
Lines:
1 to 8 of 8
public function test_filter_oembed_result_trusted_malicious_iframe() { $html = '<p></p><iframe onload="alert(1)"></iframe>'; $actual = wp_filter_oembed_result( $html, (object) array( 'type' => 'rich' ), 'https://www.youtube.com/watch?v=72xdCU__XCk' ); $this->assertSame( $html, $actual ); }