/**
	 * 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'
		);
	}
示例#2
0
文件: output.php 项目: adjaika/J3Base
 /**
  * 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);
 }