gpt4 book ai didi

html - "& did not start a character reference. (& probably should have been escaped as &.)"w3c 标记

转载 作者:技术小花猫 更新时间:2023-10-29 11:44:24 25 4
gpt4 key购买 nike

我正在使用 w3c 标记验证器。我收到此错误:

Line 169, Column 60: & did not start a character reference. (& probably should have been escaped as &.)
<a href="index.php?option=com_content&view=article&id=6&Itemid=4">

如果我使用 & 而不是 &,我无法将值传递到下一页。有人请帮助我。提前致谢

最佳答案

您是否在 & 之后添加了分号?你的链接应该是

<a href="index.php?option=com_content&amp;view=article&amp;id=6&amp;Itemid=4">

请注意,如果您将此 url 粘贴到浏览器的地址栏中,它将不起作用 - 当您单击该链接时,浏览器会将 & 转换为 &在页面中。

关于html - "& did not start a character reference. (& probably should have been escaped as &amp;.)"w3c 标记,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15970738/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com