Use character references for #x9 and #xA

This commit is contained in:
James Clark 1998-02-10 01:44:29 +00:00
parent 7badcb354d
commit 0f69f9f54b

View File

@ -46,8 +46,10 @@ static void characterData(void *userData, const char *s, int len)
case '"':
fputs(""", fp);
break;
case '\r':
fputs("
", fp);
case 9:
case 10:
case 13:
fprintf(fp, "&#%d;", *s);
break;
default:
putc(*s, fp);