diff options
Diffstat (limited to 'MySpace/formatting.cpp')
-rw-r--r-- | MySpace/formatting.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MySpace/formatting.cpp b/MySpace/formatting.cpp index cd27f65..d6b4055 100644 --- a/MySpace/formatting.cpp +++ b/MySpace/formatting.cpp @@ -63,6 +63,12 @@ void strip_tags(char *buff) { // add a space after a link in case there's something inside the <a></a> tags
if(buff[in] && buff[in] != ' ' && buff[in] != '\r' && buff[in] != '\n' && buff[in] != '\t')
buff[out++] = ' ';
+ } else if(buff[in] == '<' && buff[in + 1] == 'i') {
+ if(buff[in + 2] == 'c' && buff[in + 3] == 'o' && buff[in + 4] == 'n') { // <icon... (otherwise it could be and '<i...' tag, which is a smiley thing (see below)
+ while(buff[in] && buff[in] != '>') in++;
+ in++;
+ } else
+ buff[out++] = buff[in++];
} else
buff[out++] = buff[in++];
}
|