close_tags() public static method

See also: TextHelper::close_tags
Deprecation: since 1.2.0
public static close_tags ( string $html ) : string
$html string
return string
Beispiel #1
0
 function testCloseTagsWithSelfClosingTags()
 {
     $p = '<p>My thing is this <hr>Whatever';
     $html = \Timber\Helper::close_tags($p);
     $this->assertEquals('<p>My thing is this <hr />Whatever</p>', $html);
 }