From afc16fc2d120e780220cddc03350122ad8e672fc Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 23 Dec 2012 19:45:46 +0000 Subject: remove html tags (thx Robyer) git-svn-id: http://svn.miranda-ng.org/main/trunk@2819 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_proto.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'protocols/Skype/src/skype_proto.h') diff --git a/protocols/Skype/src/skype_proto.h b/protocols/Skype/src/skype_proto.h index bd2f8ed109..cce9a776f2 100644 --- a/protocols/Skype/src/skype_proto.h +++ b/protocols/Skype/src/skype_proto.h @@ -115,6 +115,23 @@ const SettingItem setting[]={ {LPGENT("About"), "About", DBVT_WCHAR, LI_STRING} }; +struct HtmlEntity +{ + const char *entity; + char symbol; +}; + +const HtmlEntity htmlEntities[]={ + {"nbsp", ' '}, + {"amp", '&'}, + {"quot", '"'}, + {"lt", '<'}, + {"gt", '>'}, + {"apos", '\''}, + {"copy", '©'}, + // TODO: add more +}; + struct InviteChatParam { char *id; @@ -358,6 +375,8 @@ protected: static char CharBase64[]; static ULONG Base64Encode(char *inputString, char *outputBuffer, SIZE_T nMaxLength); + static char *RemoveHtml(char *data); + // instances static LIST instanceList; static int CompareProtos(const CSkypeProto *p1, const CSkypeProto *p2); -- cgit v1.2.3