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:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: HTML entities(?)
quote:
Originally posted by mickael9
code:
var htmlentities = {
    '"'   : '"',
    ' '   : ' ',
    '''   : '\'',
    '&'    : '&',
    '\\\''     : '\''
}

multiply that list be several thousand possible entities and you have your complete script.

Otherwise such a function will always leave some entities behind.

Just to say that making something like this requires a extremely huge list...
With the result that your for...loop and the use of an object creator for each element is going to slow down your script a hell of a lot.

For situations like this, I suggest you actually dish regular expressions and make your own string manipulation routines.

Or better yet, use existing ActiveX objects which might do this job for you (I'm thinking about the XML object and that stuff)

This post was edited on 12-05-2006 at 12:25 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
12-05-2006 12:18 AM
Profile PM 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