Changeset 717e3bf for protocols/yahoo
- Timestamp:
- 2007-04-17T03:57:30Z (18 years ago)
- Branches:
- master
- Children:
- 9624fdf
- Parents:
- b3cae44
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/yahoo/yahoo.c
rb3cae44 r717e3bf 71 71 int len; 72 72 73 /* This should get rid of HTML tagsat the beginning of the string. */73 /* This should get rid of the markup noise at the beginning of the string. */ 74 74 while( *in ) 75 75 { … … 101 101 } 102 102 103 /* This is supposed to get rid of the closing HTML tagsat the end of the line. */103 /* This is supposed to get rid of the noise at the end of the line. */ 104 104 len = strlen( in ); 105 while( len > 0 && in[len-1] == '>')105 while( len > 0 && ( in[len-1] == '>' || in[len-1] == 'm' ) ) 106 106 { 107 107 int blen = len; 108 109 len --; 110 while( len > 0 && ( in[len] != '<' || in[len+1] != '/' ) ) 108 const char *search; 109 110 if( in[len-1] == '>' ) 111 search = "</"; 112 else 113 search = "\e["; 114 115 len -= 3; 116 while( len > 0 && strncmp( in + len, search, 2 ) != 0 ) 111 117 len --; 112 118 113 if( len == 0 && ( in[len] != '<' || in[len+1] != '/' ))119 if( len <= 0 && strncmp( in, search, 2 ) != 0 ) 114 120 { 115 121 len = blen;
Note: See TracChangeset
for help on using the changeset viewer.