A Conversation for Technical Feedback
Ampersand problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Started conversation Feb 10, 2002
I need to use an ampersand in a link's TITLE attribute - how?????
The parser complains that any ampersand in there (even the leading ampersand in "&") is an illegal use of an ampersand, and I can't use an ENTITY in the middle of another tag. It's part of a site's name, and frankly if I'm going to bother putting the names in I'd like to at least appear to get them right...
Ampersand problem
Silly Willy Posted Feb 10, 2002
You need to use the code & (with the semi-colon) and the parser will let it through
Ampersand problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Feb 10, 2002
Ah, OK, silly me! Will try that now...
Ampersand problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Feb 10, 2002
Yup, that worked. Fancy the Punctuation Policeman forgetting his semicolon... Ah well, it was my Sunday afternoon off...
Ampersand problem
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted Feb 10, 2002
Ampersand problem
Jim Lynn Posted Feb 10, 2002
That's because IE and other browsers are very forgiving, and will accept & as a synonym for & even though it's completely correct. (for that matter, they'll cope with & on its own as well.)
We require strict XML, so you can't miss out the ;
Ampersand problem
MaW Posted Feb 10, 2002
As you should! As you should!
(that from a person who's planning to check the generated pages of his new website project to see if it validates as XHTML or not)
Key: Complain about this post
Ampersand problem
- 1: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Feb 10, 2002)
- 2: Silly Willy (Feb 10, 2002)
- 3: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Feb 10, 2002)
- 4: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Feb 10, 2002)
- 5: MaW (Feb 10, 2002)
- 6: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (Feb 10, 2002)
- 7: Jim Lynn (Feb 10, 2002)
- 8: MaW (Feb 10, 2002)
More Conversations for Technical Feedback
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."