Re: Character Entity References
- From: Michael Fesser <netizen@xxxxxx>
- Date: Sun, 30 Mar 2008 16:59:32 +0200
..oO(ft310)
We had a consultant write some PHP software for us which in most
respects is working, but we have one issue we are having trouble
comprehending.
If the following company name "Jones & Jones" were entered into this
software, it appears in our database as {Jones & Jones} (brackets
mine).
How do we characterize this and what is {&} called.
The value in the DB should be "Jones & Jones" and nothing else. The
escaping is taking place only when you output the name to an HTML page.
Actually the & is called a named character reference (entity). Some
characters like the ampersand '&' for example have a special meaning in
HTML, which is why you have to write them as character references if you
want to output them as a literal string.
But what's the problem or the question?
Micha
.
- Follow-Ups:
- Re: Character Entity References
- From: Jerry Stuckle
- Re: Character Entity References
- References:
- Character Entity References
- From: ft310
- Character Entity References
- Prev by Date: Character Entity References
- Next by Date: dildos
- Previous by thread: Character Entity References
- Next by thread: Re: Character Entity References
- Index(es):
Relevant Pages
|
|