Mercurial > pidgin
changeset 8678:69e30736b9ef
[gaim-migrate @ 9431]
Have MSN unescape HTML entities.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 17 Apr 2004 14:12:03 +0000 |
parents | cc2ce209cc46 |
children | f39884263db0 |
files | src/protocols/msn/utils.c |
diffstat | 1 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/utils.c Sat Apr 17 13:58:29 2004 +0000 +++ b/src/protocols/msn/utils.c Sat Apr 17 14:12:03 2004 +0000 @@ -258,8 +258,21 @@ c++; } - } - else + } else if (*c == '&') { + if (!g_ascii_strncasecmp(c, "<", 4)) { + msg[retcount++] = '<'; + c += 4; + } else if (!g_ascii_strncasecmp(c, ">", 4)) { + msg[retcount++] = '>'; + c += 4; + } else if (!g_ascii_strncasecmp(c, """, 6)) { + msg[retcount++] = '"'; + c += 6; + } else if (!g_ascii_strncasecmp(c, "&", 5)) { + msg[retcount++] = '&'; + c += 5; + } + } else msg[retcount++] = *c++; }