tencode the name, it could contain XML entities - stagit - [fork] customized build of stagit, the static git page generator
 (HTM) git clone git://src.adamsgaard.dk/stagit
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 937dd3bc3e623be46b4795afc71aa28134919911
 (DIR) parent c427ffbe3ade2ddb38b14b1b2847123de204ab39
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue, 16 Nov 2021 11:44:23 +0100
       
       encode the name, it could contain XML entities
       
       Like ", which would unquote the attribute value. Crazy but true.
       
       Diffstat:
         M stagit.c                            |      10 ++++++----
       
       1 file changed, 6 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/stagit.c b/stagit.c
       t@@ -483,10 +483,12 @@ writeheader(FILE *fp, const char *title)
                        fputs(" - ", fp);
                xmlencode(fp, description, strlen(description));
                fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);
       -        fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed\" href=\"%satom.xml\" />\n",
       -                name, relpath);
       -        fprintf(fp, "<link rel=\"alternate\" type=\"application/atom+xml\" title=\"%s Atom Feed (tags)\" href=\"%stags.xml\" />\n",
       -                name, relpath);
       +        fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp);
       +        xmlencode(fp, name, strlen(name));
       +        fprintf(fp, " Atom Feed\" href=\"%satom.xml\" />\n", relpath);
       +        fputs("<link rel=\"alternate\" type=\"application/atom+xml\" title=\"", fp);
       +        xmlencode(fp, name, strlen(name));
       +        fprintf(fp, " Atom Feed (tags)\" href=\"%stags.xml\" />\n", relpath);
                fprintf(fp, "<link rel=\"stylesheet\" type=\"text/css\" href=\"%sstyle.css\" />\n", relpath);
                fputs("</head>\n<body>\n<table style=\"width:100%\"><tr><td>", fp);
                fprintf(fp, "<a href=\"../%s\"><img src=\"%slogo.png\" alt=\"\" width=\"32\" height=\"32\" /></a>",