验证者:如何解决此错误?

时间:2010-03-02 15:36:19

标签: xhtml character-encoding

我在验证器中收到此错误:

Line 47, Column 187: character "&" is the first character of a delimiter but occurred as data 
…num, silver diamonds. cartier tiffany & Co.  $18 WALKING LIBERTY DOLLARS   $15…



This message may appear in several cases: 
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.

如何解决?

1 个答案:

答案 0 :(得分:6)

你忘了逃避&符号。

&替换为&amp;