예제 #1
0
 public function testStripHtml()
 {
     $this->assertEquals('lorem ipsum dolor sit amet', StringUtils::stripHtml('lorem <i>ipsum</i> dolor <span>sit amet</span>'));
     $this->assertEquals('lorem ipsum dolor sit amet', StringUtils::stripHtml('lorem <i class="something" data-some-bound-data="123">ipsum</i> dolor sit amet'));
     $this->assertEquals('lorem &gt; ipsum', StringUtils::stripHtml('lorem > ipsum'));
     $this->assertEquals('lorem &lt; ipsum', StringUtils::stripHtml('lorem < ipsum'));
 }