1 #ifndef XML_ENTITIES_H_PRIVATE__ 2 #define XML_ENTITIES_H_PRIVATE__ 3 4 #include <libxml/tree.h> 5 #include <libxml/xmlstring.h> 6 7 /* 8 * Entity flags 9 * 10 * XML_ENT_PARSED: The entity was parsed and `children` points to the 11 * content. 12 * 13 * XML_ENT_CHECKED: The entity was checked for loops and amplification. 14 * expandedSize was set. 15 * 16 * XML_ENT_VALIDATED: The entity contains a valid attribute value. 17 * Only used when entities aren't substituted. 18 */ 19 #define XML_ENT_PARSED (1u << 0) 20 #define XML_ENT_CHECKED (1u << 1) 21 #define XML_ENT_VALIDATED (1u << 2) 22 #define XML_ENT_EXPANDING (1u << 3) 23 24 #define XML_ESCAPE_ATTR (1u << 0) 25 #define XML_ESCAPE_NON_ASCII (1u << 1) 26 #define XML_ESCAPE_HTML (1u << 2) 27 #define XML_ESCAPE_QUOT (1u << 3) 28 #define XML_ESCAPE_ALLOW_INVALID (1u << 4) 29 30 XML_HIDDEN int 31 xmlSerializeHexCharRef(char *buf, int val); 32 XML_HIDDEN int 33 xmlSerializeDecCharRef(char *buf, int val); 34 35 XML_HIDDEN xmlChar * 36 xmlEscapeText(const xmlChar *text, int flags); 37 38 XML_HIDDEN xmlChar * 39 xmlEncodeEntitiesInternal(xmlDocPtr doc, const xmlChar *input, 40 unsigned flags); 41 42 #endif /* XML_ENTITIES_H_PRIVATE__ */ 43