Please slove the below error.
-
- Rank 0 - Newcomer
- Posts: 3
- Joined: Tue May 30, 2006 9:53 pm
Please slove the below error.
How to avoid from geeting this error message. Found an ampersand '&' but could not find a following semicolon for a properly formed character reference. If you want to actually display an ampersand, such as in "Recreation & Sports", then use the character entity reference "&" as in "Recreation & Sports" (see comment).
-
- Rank V - Professional
- Posts: 297
- Joined: Fri Jul 29, 2005 5:55 pm
- Location: CO
Re: Please slove the below error.
I guess I don't understand your question. The suggestion how to avoid the error by replacing an "&" in your text with "&" seems straight forward. "<" and ">" also must be handled with care as noted in your other posting.basheer wrote:How to avoid from geeting this error message. Found an ampersand '&' but could not find a following semicolon for a properly formed character reference. If you want to actually display an ampersand, such as in "Recreation & Sports", then use the character entity reference "&" as in "Recreation & Sports" (see comment).
If you would provide an example of the html that is causing the problem we could be of more help.
-
- Rank 0 - Newcomer
- Posts: 4
- Joined: Sat May 13, 2006 9:45 pm
-
- Site Admin
- Posts: 3785
- Joined: Sat Dec 11, 2004 9:23 am
- Location: Near Dallas, TX
Hello,MaryLouW wrote:I have the same problem. For example, if I put the following in my text:
Henry & Jane are friends.
I will get that error message. I would like to avoid it without having to go back and putting in html code in the middle of a sentence.
If you use the ampersand in text in an HTML document, then it should be escaped to avoid confusion with the beginning of a character reference. The ampersand is an escape character in HTML. I do not know of a way to avoid this (not use &) and still be correct. Example:
Henry & Jane are friends.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
-
- Rank VI - Professional
- Posts: 726
- Joined: Mon Dec 13, 2004 1:50 pm
- Location: Tannhauser Gate