Timber\Helper::close_tags PHP Метод

close_tags() публичный статический Метод

См. также: TextHelper::close_tags
Устаревший: since 1.2.0
public static close_tags ( string $html ) : string
$html string
Результат string
    public static function close_tags($html)
    {
        return TextHelper::close_tags($html);
    }

Usage Example

Пример #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);
 }