Code:
<HTML><FONT>Hey</FONT></HTML>
|
Light Poster
|
|
| 7Mar2006,11:04 | #1 |
|
I am trying to make a small AIM app, so far I can connect to the internet and get IMs, not send yet, but get. Now, when recieving, I get the message in HTML coding, I want to for now remove those words:
Code:
<HTML><FONT>Hey</FONT></HTML> |
|
Go4Expert Founder
|
![]() |
| 7Mar2006,11:21 | #2 |
|
First of all welcome to www.go4expert.com
This can be done by just parsing the character array that contains the output. Search for < and move from the next character till the > if you find matching < and > remove discard the string. |
|
Light Poster
|
|
| 7Mar2006,11:46 | #3 |
|
Hmmmm... Ok, parsing, thanks, I had heard that somewhere, but never had thought to use it, thanks for the answer and how quick it was. Now I can simply use a token to remove un-useable characters. An example is machine code that is generated by the Null (0x00) character. This also can be used for 'smilies' I assume? Simply instead of removing the certain 'characters' just replace them with an image, simple.
Thanks, Ill be sure to refer this site to some other developers in need of some help!
Last edited by sg57; 7Mar2006 at 11:48.. |
|
Go4Expert Founder
|
![]() |
| 7Mar2006,14:14 | #4 |
|
Quote:
Originally Posted by sg57 |
|
Light Poster
|
|
| 8Mar2006,06:40 | #5 |
|
That might be better actually, use a prototype (change whatever words I want to the Null character) then use that strtok function/prototype to remove all Null characters. Just need to parse the string characters all together, then proceeed.
|
|
Team Leader
|
![]() |
| 8Mar2006,07:03 | #6 |
|
Quote:
Originally Posted by sg57 |