mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
characters encoded as html should have a trailing semicolon
to be interpreted properly
This commit is contained in:
parent
6eb1e41674
commit
3efa51d943
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user