XML_Util::attributesToString (Previous) (Next) XML_Util::createTag

View this page in Last updated: Sun, 01 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

XML_Util::collapseEmptyTags()

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

Leírás

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.

Paraméterek

  • string $string - string, in which empty tags should be collapsed

  • integer $mode - collapse all empty tags (XML_UTIL_COLLAPSE_ALL) or only XHTML tags (XML_UTIL_COLLAPSE_XHTML_ONLY).

Visszatérési érték

string string with collapsed empty tags

Megjegyzés

Ez a függvény statikus meghívásra van felkészítve!

XML_Util::attributesToString (Previous) (Next) XML_Util::createTag

Download Documentation Last updated: Sun, 01 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.