Use character references for #x9 and #xA
This commit is contained in:
parent
7badcb354d
commit
0f69f9f54b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user