clearSelfClosingTags() 공개 메소드

Sets the list of self closing tags to empty.
예제 #1
0
 public function testLoadClosingTagClearSelfClosingTag()
 {
     $dom = new Dom();
     $dom->clearSelfClosingTags();
     $dom->load('<div class="all"><br><p>Hey bro, <a href="google.com" data-quote="\\"">click here</a></br></div>');
     $this->assertEquals('<br><p>Hey bro, <a href="google.com" data-quote="\\"">click here</a></p></br>', $dom->find('div', 0)->innerHtml);
 }