Pike v8.0 release 1738

Method Parser.decode_numeric_xml_entity()


Method decode_numeric_xml_entity

string decode_numeric_xml_entity(string chref)

Description

Decodes the numeric XML entity chref, e.g. "4" and returns the character as a string. chref is the name part of the entity, i.e. without the leading '&' and trailing ';'. Returns zero if chref isn't on a recognized form or if the character number is too large to be represented in a string.