Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22644

Re: Removing ' ' from strings ??

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "Mel Smith" <med_cutout_syntel@aol.com>
Newsgroups comp.lang.javascript
Subject Re: Removing '&nbsp;' from strings ??
Date Thu, 16 Jan 2014 11:05:59 -0700
Lines 19
Message-ID <bjqlcdFs117U1@mid.individual.net> (permalink)
References <bjog40Fe7h5U1@mid.individual.net><XnsA2B6F00B7DFE3eejj99@194.109.133.133><0.14085b2fab6b953fb903.20140115234423GMT.87bnzcolns.fsf@bsb.me.uk><bjom61FfeukU1@mid.individual.net> <bjqegcFqgpcU1@mid.individual.net> <0.ae3d2a008e8309f72c9a.20140116161844GMT.87ob3blx23.fsf@bsb.me.uk> <bjqit9Frfe7U1@mid.individual.net> <bjqjjpFrkm6U1@mid.individual.net> <52d81dca$0$6547$9b4e6d93@newsspool4.arcor-online.net>
X-Trace individual.net IhAC/5ooJimcgp3f4On0bwAm3oaTyKrMw8jD+U1kVn2Fn0+gOQ
Cancel-Lock sha1:/afvKDnIvCJPrukkN2LYj9kqxd4=
X-Priority 3
X-MSMail-Priority Normal
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.6157
X-RFC2646 Format=Flowed; Response
Xref csiph.com comp.lang.javascript:22644

Show key headers only | View raw


Martin said:
> Is that script code you have inline inside of an HTML document? Or why do 
> you use an HTML entity reference?

    Yes, it is in a javascript function in an html doc that is getting the 
text string from a option of a <select> tag -- but maybe I don't undestand 
what you're asking ??

> Have you tried
>   textstr.replace(/\u00A0/g, ' ')
> ?

    No, but I'll give it a try.

Thanks Martin.

-Mel

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Removing '&nbsp;' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-15 15:23 -0700
  Re: Removing '&nbsp;' from strings ?? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-15 23:35 +0100
    Re: Removing '&nbsp;' from strings ?? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-15 23:44 +0000
      Re: Removing '&nbsp;' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-15 17:07 -0700
        Re: Removing '&nbsp;' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 09:08 -0700
          Re: Removing '&nbsp;' from strings ?? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-16 16:18 +0000
            Re: Removing '&nbsp;' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 10:23 -0700
              Re: Removing '&nbsp;' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 10:35 -0700
                Re: Removing '&nbsp;' from strings ?? Martin Honnen <mahotrash@yahoo.de> - 2014-01-16 18:58 +0100
                Re: Removing '&nbsp;' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 11:05 -0700
                Re: Removing '&nbsp;' from strings ?? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-01-16 18:01 +0000
                Re: Removing '&nbsp;' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 11:10 -0700
                Re: Removing '&nbsp;' from strings ?? Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-16 19:17 +0000
                Re: Removing '&nbsp;' from strings ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2014-01-16 13:37 -0700

csiph-web