为什么这个 html 代码没有被正确解释?

Why is this html code not correctly interpreted?

我对这段HTML代码有点好奇(Firebug的观点):

<td>1&#8211;1 of 1 record found matching your query (<a href="rss.php?where=title%20RLIKE%20%22physics%22" title="track newly added records matching your current query by subscribing to this RSS feed">RSS</a>&nbsp;|&nbsp;<a href="query_history.php" title="recall a previous query from your current session">history</a>):</td>

我正在尝试安装 refbase。由于当前版本存在 SQL 个问题,我使用了快照版本。在测试时我得到了这个视图(Firebug 控制台是故意打开的以显示代码是如何解释的,但我在铬上看到了相同的例子):

.

.

然后我在 firebug 视图中单击并在某处添加了一个 space 字符,然后转义让它保持原样。但是在添加了space之后,视图变成了这样:

.

.

所以基本上我什么都没改变,但代码现在可以正确解释了。这真的很奇怪。我用谷歌搜索了一下,但我想我可能没有找到合适的关键字。

有人可以向我解释这种奇怪行为背后的原因以及如何解决吗?顺便说一句,此 Here 是生成此页面的完整 php 来源。看第796行。

编辑: 感谢 LGSon,我注意到这是一个 Firebug 的陷阱:它解释 &amp; 的东西以显示漂亮的 html 代码,然后当你编辑它时,它变成了真正的代码。这确实很棘手,但是在检查页面源时你可以看到真正的 HTML:

<td>1&amp;#8211;1 of 1 record found matching your query (&lt;a href=&quot;rss.php?where=title%20RLIKE%20%22physics%22&quot; title=&quot;track newly added records matching your current query by subscribing to this RSS feed&quot;&gt;RSS&lt;/a&gt;&amp;nbsp;|&amp;nbsp;&lt;a href=&quot;query_history.php&quot; title=&quot;recall a previous query from your current session&quot;&gt;history&lt;/a&gt;):</td>

应该是1&#8211;1

样本

1&#8211;1