• Ok. i have a small problem. I modified RustAsides to work as a “Visit Site” plugin for my site and have a problem.

    e c h o ” < i >< a href = ” . trim( $rAsid es[ $ i]). ” >Visit Site< /i> <s tro n g>|</ s tr ong> ” ;

    When i create a link, It doesnt have quotes. How do I make it have quotes? Example, When I create a link, It looks like:

    <a href=blog.com>visit site</ a>

    I want it to have quotes after the = sign and after the com.

Viewing 1 replies (of 1 total)
  • One way is to *escape* the quotes in your code:

    echo "<i><a href =\"" . trim( $rAsid es[ $ i]) . "\">Visit Site</i> <strong>|</strong>" ;

    The slash before a double quote tells PHP the following character is a special one, in this case that it’s printable. Alternatively, switch to single quotes to surround your text strings:

    echo '<i><a href ="' . trim( $rAsid es[ $ i]) . '">Visit Site</i> <strong>|</strong>' ;

Viewing 1 replies (of 1 total)
  • The topic ‘RustAsides – Adding a ” to links..’ is closed to new replies.