browser compatibility: use numeric entity for '
' is a XHTML entity, browsers such as links, w3m, lynx and dillo don't support it.
This commit is contained in:
parent
bba55b6bbc
commit
ab3fdd7043
2 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ xmlencode(FILE *fp, const char *s, size_t len)
|
|||
switch(*s) {
|
||||
case '<': fputs("<", fp); break;
|
||||
case '>': fputs(">", fp); break;
|
||||
case '\'': fputs("'", fp); break;
|
||||
case '\'': fputs("'" , fp); break;
|
||||
case '&': fputs("&", fp); break;
|
||||
case '"': fputs(""", fp); break;
|
||||
default: fputc(*s, fp);
|
||||
|
|
2
stagit.c
2
stagit.c
|
@ -248,7 +248,7 @@ xmlencode(FILE *fp, const char *s, size_t len)
|
|||
switch(*s) {
|
||||
case '<': fputs("<", fp); break;
|
||||
case '>': fputs(">", fp); break;
|
||||
case '\'': fputs("'", fp); break;
|
||||
case '\'': fputs("'", fp); break;
|
||||
case '&': fputs("&", fp); break;
|
||||
case '"': fputs(""", fp); break;
|
||||
default: fputc(*s, fp);
|
||||
|
|
Loading…
Reference in a new issue