What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HTML entities(?)

HTML entities(?)
Author: Message:
mickael9
Full Member
***


Posts: 117
Reputation: 3
33 / Male / Flag
Joined: Jul 2005
RE: HTML entities(?)
code:
var htmlentities = {
    '"'   : '"',
    ' '   : ' ',
    '''   : '\'',
    '&'    : '&',
    '\\\''     : '\''
}
String.prototype.htmldecode = function()
{
    var sRet = this;
   
    for (var sKey in htmlentities)
    {
        sRet = sRet.replace(new RegExp(sKey, 'g'), htmlentities[sKey]);
    }
   
    return sRet;
}

var decodedText = myText.htmldecode();

This post was edited on 12-04-2006 at 07:18 PM by mickael9.
12-03-2006 06:18 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HTML entities(?) - by pollolibredegrasa on 12-03-2006 at 04:45 PM
RE: HTML entities(?) - by mickael9 on 12-03-2006 at 06:18 PM
RE: RE: HTML entities(?) - by CookieRevised on 12-05-2006 at 12:18 AM
RE: HTML entities(?) - by pollolibredegrasa on 12-04-2006 at 05:57 PM
RE: HTML entities(?) - by mickael9 on 12-04-2006 at 07:18 PM
RE: RE: RE: HTML entities(?) - by pollolibredegrasa on 12-06-2006 at 03:08 PM
RE: HTML entities(?) - by CookieRevised on 12-07-2006 at 12:38 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