HI everyone, I have a script running on a website that uses the facebook share.php file.
<?php
$title=urlencode(''.$numrows['title'].' | '. htmlentities(money_format("%10.2n", $numrows[price])).' '.$currency_code.'');
$url=urlencode(''.$token.'');
$summary=urlencode(''.$numrows['description'].'');
$image=urlencode(''.$numrows['img1'].'');
?>
<a id="button" onClick="window.open('http://www.facebook.com/sharer.php?s=100&p[title]=<?php echo $title;?>&p[summary]=<?php echo $summary;?>&p[url]=<?php echo $url; ?>&&p[images][0]=<?php echo $image;?>', 'sharer', 'toolbar=0,status=0,width=550,height=400');" target="_parent" href="javascript: void(0)">
<input type='submit' class='btn' title='Share This Item With Friends' value='Share On Facebook'></form>
</a>
<?php
Now I have the currency symbol displaying correctly when the page is loaded. Now I am trying to display the currency symbol from within the code I get the html code = £ being displayed infront of the price.
I have tried it with money_format("%10.2n", $numrows[price]) but that doesnt work.
Any ideas why or how I can get this to work and display the currency symbol correctly