diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-09-14 10:29:27 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-09-14 10:29:27 +0000 |
commit | 166982816ee63ec70e8bdcabcdf337b1fe9e1e80 (patch) | |
tree | ba99d23b3a5a3067d9711f1d156c2c9138829848 /entities.c | |
parent | 008186fc7fe681c4fa0abd831bc4cb244f46ab01 (diff) | |
download | libxml2-166982816ee63ec70e8bdcabcdf337b1fe9e1e80.tar.gz |
do not output hexadecimal charrefs when serializing HTML since some
* encoding.c entities.c: do not output hexadecimal charrefs
when serializing HTML since some version of Netscape can't
grok it, generate decimal ones.
* result/HTML/doc3.htm: output changed due to previous test
* parserInternals.c: repair xmlKeepBlanksDefault() broken in 2.4.4
Daniel
Diffstat (limited to 'entities.c')
-rw-r--r-- | entities.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -708,7 +708,10 @@ xmlEncodeEntitiesReentrant(xmlDocPtr doc, const xmlChar *input) { /* * We could do multiple things here. Just save as a char ref */ - snprintf(buf, sizeof(buf), "&#x%X;", val); + if (html) + snprintf(buf, sizeof(buf), "&#%d;", val); + else + snprintf(buf, sizeof(buf), "&#x%X;", val); buf[sizeof(buf) - 1] = 0; ptr = buf; while (*ptr != 0) *out++ = *ptr++; |