GMchris February 2016

<a> doesn't wrap span, and appears as text

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

Why is my link interpreted like text? And why is the closing </a> missing?

Answers


AlexG February 2016

Your anchor tag seems not to be an "a", but a different symbol that looks like an a. Not sure what it is though. replace it then it should work.

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

in comparision, yours:

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

Post Status

Asked in February 2016
Viewed 3,727 times
Voted 5
Answered 1 times

Search




Leave an answer