Shoutbox

[help] Removing tags - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [help] Removing tags (/showthread.php?tid=61898)

[help] Removing tags by grae on 06-28-2006 at 03:21 PM

"8><li value=8 id=d360284>some text some text ..."


I am getting a text from an url like seen above, I want to remove the tags before the text. The "value" and "id" numbers are variable, so I made this code for this..

kokentry is the text.


basla = kokentry.indexOf("<li value=");
bit = kokentry.indexOf(">",basla);
kokentry = kokentry.remove(0, bit);


But it gives me an error at the line 3: "The object does not support this property or method."

I don't know what to do.


RE: [help] Removing tags by Mnjul on 06-28-2006 at 03:51 PM

There is no remove method of a String in JScript 5.6...
Line 3 could be replace with

kokentry = kokentry.substr(bit+1)

to get the desired result, I think. :)


RE: [help] Removing tags by grae on 06-28-2006 at 04:36 PM

Oh, I see. My foolishness.. Thank you, this helped. :)