• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

special characters

 
slagy maggie
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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 ;"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic