| Looks for illegal ampersands and converts them to entities. |
Signature: fixAmpersands($xmlText) |
Parameters:
String xmlText - The xml text to be repaired.
|
Returns:
String - The repaired xml text.
|
Example:
Repairs the specified xml text. $myXMLText = DOMIT_Doctor::fixAmpersands($myXMLText); |
| Evaluates whether an ampersand should be converted to an entity, and performs the conversion. |
Signature: evaluateCharacter($xmlText, $illegalChar, $startIndex) |
Parameters:
String xmlText - The xml text.
String illegalChar - The (ampersand) character.
int startIndex - The character index immediately following the ampersand in question.
|
Returns:
String - The repaired xml text.
|