$element
contains an image, like: <img src='example.com/img.png'>
. Is there anyway I can add the title $descr
on $element
instead of the current anchor wrapping it?
echo "<a class='target-link' target='_blank' title='$descr' href='$url'>$element</a>";