Removes the tag (or tags in an array) from the list of tags that will
always be self closing.
public removeSelfClosingTag ( string | array $tag ) | ||
$tag | string | array |
public function testLoadClosingTagRemoveSelfClosingTag() { $dom = new Dom(); $dom->removeSelfClosingTag('br'); $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); }