<a> doesn&#39;t wrap span, and appears as text

时间:2016-02-08 09:45:42

标签: php html anchor

I've used an <a></a> tag inside a PHP file. It looks like so:

<а href="https://play.google.com/store/apps/details?id=org.imperialhero.android">
    <span class="qr-wrapper"></span>
</a>

However, when rendered as HTML on the page, the span within is displayed normally (and outside of the anchor element), while the anchor is "seen" as text and displayed like so.

enter image description here

为什么我的链接被解释为文字?为什么结束</a>不见了?

1 个答案:

答案 0 :(得分:1)

您的锚标记似乎不是“a”,而是一个看起来像a的不同符号。不知道它是什么。替换它然后它应该工作。

<a href="https://play.google.com/store/apps/details?id=org.imperialhero.android">
    <span class="qr-wrapper"></span>
</a>

比较中,你的:

<а href="https://play.google.com/store/apps/details?id=org.imperialhero.android">
    <span class="qr-wrapper"></span>
</a>