Search code examples
javascriptjqueryhtmlhref

href adds symbols to link preventing it from opening


I have a very simple href in html code. When I try to click on the link to make sure it works it adds symbols to the link and prevents it from opening.

Lets say the code is:

<a href=“/home/readmore.html” > Read More &raquo</a>

When the link is clicked, it will try to send you to "“/home/readmore.htmlâ€%C2%9D" instead of “/home/readmore.html”

I'm not quite sure what's going on since this should be such a straight forward command.


Solution

  • change your a tag from:

    <a href=“/home/readmore.html” > Read More &raquo</a>
    

    to:

    <a href="/home/readmore.html" > Read More &raquo</a>