I'm not sure how to add the target=_blank to my code below. I am using Codeigniter and my image below contains an external link and works like a charm. I would love to have it open in a new window or tab but I'm unsure how to do it. I haven't found anything so far of anyone else using this method. Any suggestions are appreciated. Thanks
<?php
echo anchor(
'http://www.facebook.com',
img(array(
'src'=>base_url().'images/facebook.png',
'width'=>'32',
'height'=>'32',
'id'=>'facebook',
'alt'=>'Facebook Logo'
))
);?>