33 int (*cb)(
void *state,
const char *
s),
void *state);
macro for API hiding/exposing
options to tweak the behavior of XML escaping
unsigned utf8
anticipate non-ASCII characters that need to be encoded
unsigned raw
assume no embedded escapes, and escape "\n" and "\r"
unsigned nbsp
escape consecutive ' '
UTIL_API int gv_xml_escape(const char *s, xml_flags_t flags, int(*cb)(void *state, const char *s), void *state)