diff --git a/stagit-index.c b/stagit-index.c
index 0a72b33..1552f40 100644
--- a/stagit-index.c
+++ b/stagit-index.c
@@ -81,12 +81,14 @@ writeheader(FILE *fp)
fprintf(fp, "\n", relpath);
fputs("\n
\n", fp);
fprintf(fp, "\n![\"\"](\"%slogo.png\") | \n"
- "%s%s |
| \n",
- relpath, name, description);
- fputs(" |
\n
\n
\n\n"
- "
\n"
- "Name | Description | Owner | Last commit |
"
- "\n", fp);
+ "", relpath);
+ xmlencode(fp, description, strlen(description));
+ fputs(" | | \n"
+ " |
\n
\n
\n
\n"
+ "
\n"
+ "Name | Description | Owner | "
+ "Last commit |
"
+ "\n", fp);
}
void