XML_Util::reverseEntities() – replace XML entities


require_once 'XML/Util.php';

string XML_Util::reverseEntities ( string $string )


This is the reverse function to XML_Util::replaceEntities()(). It replaces all XML (or HTML) entities in a string by their corresponding characters. This can be useful when working with XML documents without using an XML parser.

This method has been added in XML_Util 1.0.0.


  • string $string - string, in which entities have to be removed

Return value

string string with entities removed


This function should be called statically.

XML_Util::replaceEntities (Previous) XML_Util::splitQualifiedName (Next)
Last updated: Tue, 02 Jun 2009 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.