characters encoded as html should have a trailing semicolon

to be interpreted properly
This commit is contained in:
Eric Andersen 2005-06-23 05:51:48 +00:00
parent 6eb1e41674
commit 3efa51d943

View File

@ -734,7 +734,7 @@ static char *encodeString(const char *string)
while ((ch = *string++)) {
// very simple check for what to encode
if (isalnum(ch)) *p++ = ch;
else p += sprintf(p, "&#%d", (unsigned char) ch);
else p += sprintf(p, "&#%d;", (unsigned char) ch);
}
*p=0;
return out;