Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

how to set title on anchor attribute

i am using this piece of code and i want to allocate a title to it; just don't know how to do that
echo Anchor("", 'discussion/markv/' . $Comment->CommentID, 'Hijack img-swap on');

Comments

  • Options
    peregrineperegrine MVP
    edited October 2015

    pro-tip:

    if you look in core code you can see examples.

    the idea is to scan core code for Anchor and title.

    you see you can put it in array....

    Anchor($Label, $Url, array('title' => $Title, 'class' => 'User-Verified Hijack'));


    • which would indicate this should work

    echo Anchor("", 'discussion/markv/' . $Comment->CommentID, array('title' => "Jackmaessen", 'class' => "Hijack img-swap on"));

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Options

    works great! @peregrine Thanks for support

Sign In or Register to comment.