• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

special characters

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when i try to get the value
<manufacturername>johnson&johnson<manufacturername>
&:this i have included to represent johnson&johnson
and when i try extracting the value
i get only johnson
why does this happen
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by slagy maggie:
when i try to get the value
<manufacturername>johnson&johnson<manufacturername>
&:this i have included to represent johnson&johnson
and when i try extracting the value
i get only johnson
why does this happen


hi,
I don't beleive this, i clearly remeber having written:
<manufacturername>johnson & johonson<manufacturername>
:-)
sorry for the blunder.
karthik.
 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
karthik i know what is going on....what ever we are typing is getting converted by the browser.....okay you meant
johnson "&" johnson ....disregard the quotes.... or johnson
"&" johnson when i try giving "&" it does not work
but if i give "&" it works...and moreover is there any parser which will understand all this without us going thru the trouble of writing hash blah blah...is there anyway in the <DOCTYPE Entity.....> where you can specify all this
 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i dont believe this....once again.....it did it
okay why is it that it works for "ampersand hash 38 ; "
and not for "ampersand amp ;"
 
Are we home yet? Wait, did we forget the tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic