On 12/30/2007 5:37 PM, Stefan Ram wrote:
Quote:
"David E. Ross" <nobody (AT) nowhere (DOT) not> writes:
I'm not sure, but I think this repair script will turn a good
&
into
&amp;
RFC 2396 does not distinguish between »good &s« and others.
So, when do you deem an »&« to be »good«? |
I consider the entity reference "&" to be good if it appears where
it is intended to represent the symbol "&" in a Web context that does
not allow the symbol "&" to represent itself.
Don't quibble about semantics. The questions are:
If the entity reference "&" is already in an HTML file along with
plain "&" symbols, what will the repair() subroutine do with it?
Will "&" become "&amp;" or not?
--
David Ross
<http://www.rossde.com/>
Have you been using Netscape and now feel abandoned by AOL?
Then use SeaMonkey. Go to <http://www.seamonkey-project.org/>.