/** * Tests stripping iFrames. * * @return void * * @since 12.2 */ public function testStripIframes() { $this->assertEquals( 'Hello I am waving at you.', $this->object->stripIframes('Hello <iframe src="http://player.vimeo.com/video/37576499" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> I am waving at you.'), 'Should remove iFrame tags' ); }
/** * Helper wrapper method for stripIframes * * @param string $string Sting to be cleaned. * * @return string Cleaned string. * * @see JFilterOutput::stripIframes() * @since 3.4 */ public function stripIframes($string) { return JFilterOutput::stripIframes($string); }