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


Groups > comp.lang.javascript > #22646

Re: Removing ' ' from strings ??

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Denis McMahon <denismfmcmahon@gmail.com>
Newsgroups comp.lang.javascript
Subject Re: Removing '&nbsp;' from strings ??
Date Thu, 16 Jan 2014 19:17:00 +0000 (UTC)
Organization A noiseless patient Spider
Lines 12
Message-ID <lb9b7c$7p1$1@dont-email.me> (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>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Thu, 16 Jan 2014 19:17:00 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="7969"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+MYrBx2VDSRM+h/ips6MGjY868VqEjpPE="
User-Agent Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2)
Cancel-Lock sha1:qeZ5os2O59L1AFE+xh3LQrVhQdE=
Xref csiph.com comp.lang.javascript:22646

Show key headers only | View raw


On Thu, 16 Jan 2014 10:35:48 -0700, Mel Smith wrote:

> textstr = option.text ;

option.text may not be the same as option.innerHTML, especially if the 
html contains entity codes. I suspect the issue is that the html entity 
codes have been translated into some other encoding scheme (ie other than 
html entity encoding) in the text string that you're getting back as the 
value of option.text.

-- 
Denis McMahon, denismfmcmahon@gmail.com

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