characters encoded as html should have a trailing semicolon
to be interpreted properly
This commit is contained in:
@@ -734,7 +734,7 @@ static char *encodeString(const char *string)
|
|||||||
while ((ch = *string++)) {
|
while ((ch = *string++)) {
|
||||||
// very simple check for what to encode
|
// very simple check for what to encode
|
||||||
if (isalnum(ch)) *p++ = ch;
|
if (isalnum(ch)) *p++ = ch;
|
||||||
else p += sprintf(p, "&#%d", (unsigned char) ch);
|
else p += sprintf(p, "&#%d;", (unsigned char) ch);
|
||||||
}
|
}
|
||||||
*p=0;
|
*p=0;
|
||||||
return out;
|
return out;
|
||||||
|
Reference in New Issue
Block a user