XML_Util::replaceEntities

XML_Util::replaceEntities()

XML_Util::replaceEntities() -- replace XML entities

Description

In XML documents you are not allowed to use & and <. The have to be replaced with their respective entities. This method does this for you and furthermore replaces all other predefined XML entities.

Parameter

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

Return value

string string with entities replaced

Note

This function should be called statically.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.