What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] How to decode HTML codes?

[Question] How to decode HTML codes?
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [Question] How to decode HTML codes?
Just made a little function for removing html codes in this format (i would add support for all the & style codes but theres too many of the darned things :P)

function: (one line, ok kinda long line but still one line!)
code:
function htmldecode(encodedString){ return encodedString.replace(/&#([0-9]+);/g, function(a,b){ return String.fromCharCode( b); } ); }

example:
code:
htmldecode("Hello World"); //returns "Hello World"
01-13-2007 10:42 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Question] How to decode HTML codes? - by tryxter on 01-11-2007 at 01:36 PM
RE: [Question] How to decode HTML codes? - by Silentdragon on 01-11-2007 at 06:03 PM
RE: [Question] How to decode HTML codes? - by tryxter on 01-11-2007 at 06:26 PM
RE: [Question] How to decode HTML codes? - by tryxter on 01-12-2007 at 07:43 PM
RE: [Question] How to decode HTML codes? - by albert on 01-12-2007 at 07:47 PM
RE: [Question] How to decode HTML codes? - by tryxter on 01-12-2007 at 07:52 PM
RE: [Question] How to decode HTML codes? - by Mnjul on 01-12-2007 at 08:18 PM
RE: [Question] How to decode HTML codes? - by tryxter on 01-13-2007 at 12:38 AM
RE: [Question] How to decode HTML codes? - by Eljay on 01-13-2007 at 10:42 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On