diff options
Diffstat (limited to 'protocols/MSN/src/msn_libstr.cpp')
-rw-r--r-- | protocols/MSN/src/msn_libstr.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/MSN/src/msn_libstr.cpp b/protocols/MSN/src/msn_libstr.cpp index e2ff878241..77890a1075 100644 --- a/protocols/MSN/src/msn_libstr.cpp +++ b/protocols/MSN/src/msn_libstr.cpp @@ -156,6 +156,14 @@ void HtmlDecode(char *str) else if (!strncmp(p, ">", 4)) { *q = '>'; p += 3; }
else if (!strncmp(p, "<", 4)) { *q = '<'; p += 3; }
else if (!strncmp(p, """, 6)) { *q = '"'; p += 5; }
+ else if (p[1] == '#') {
+ int c;
+ if (sscanf(p, "&#%d;", &c) == 1) {
+ *q = c;
+ p = strchr(p, ';');
+ }
+ else *q = *p;
+ }
else { *q = *p; }
}
else *q = *p;
|