Zen Follower
- Join Date:
- Apr 2006
- Posts:
- 114
- Plugin Contributions:
- 0
how do I insert a link without the ampersand in the address?
I have a question - very newbie so obviously not understanding the issue completely.
I have a lot of added links in my other website where for example, in one category or product, I will link to another which is related by inserting link in the html editor - BUT I am finding this throws up a lot of errors when I validate the site.
for example:
Line 165, Column 46: cannot generate system identifier for general entity "cPath"
href="/index.php?main_page=index&cPath=3_4"An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters.
If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
In my new site, I am trying to keep it clean and correct (just 1 error so far - yay) so how do I insert a link without the ampersand in the address causing these errors.
cheers
Leah