XML_Util::collapseEmptyTags()

XML_Util::collapseEmptyTags() -- collapse empty XML tags in a string

Synopsis

require_once 'XML/Util.php';

string XML_Util::collapseEmptyTags (string $string [, integer $mode = XML_UTIL_COLLAPSE_ALL])

Описание

This method collapses empty tags like <foo></foo> with the short version <foo/> by applying a regular expression. This is especially helpful when dealing with XHTML-documents, as there is an important difference in rendering these tags in the browser.

This method has been added in XML_Util 1.1.0.

Параметр

Возвращаемое значение

string string with collapsed empty tags

Заметка

Эта функция должна вызываться статически.


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ