gum1982 Posted July 31, 2009 Share Posted July 31, 2009 Hi i really need some help how do i strip all the & in the url so they show as just &. Can someone please help ive got a joomla plugin installed and one link works fine in the php code. (CLICK PAULS BLOG HYPERLINK WHEN ITS SHOWS) Example:http://www.digitalurbanbeats.co.uk/glenwood/ it take you too this url fine. http://www.digitalurbanbeats.co.uk/glenwood/index.php?option=com_content&view=article&id=63&Itemid=37 But when you click the READMORE button on the same article it shows this link. http://www.digitalurbanbeats.co.uk/glenwood/index.php?option=com_content&view=article&id=63&Itemid=37 As you can see its adding amp; after every & is their a way to solve this. Sorry if i havent explained very well. But some help would be greatly appriciated. Link to comment https://forums.phpfreaks.com/topic/168291-solved/ Share on other sites More sharing options...
nrg_alpha Posted July 31, 2009 Share Posted July 31, 2009 You can always use html_entity_decode Example: $url = 'http://www.digitalurbanbeats.co.uk/glenwood/index.php?option=com_content&view=article&id=63&Itemid=37'; echo html_entity_decode($url); // Output: http://www.digitalurbanbeats.co.uk/glenwood/index.php?option=com_content&view=article&id=63&Itemid=37 Link to comment https://forums.phpfreaks.com/topic/168291-solved/#findComment-887659 Share on other sites More sharing options...
gum1982 Posted July 31, 2009 Author Share Posted July 31, 2009 Hey that's great thanks for the reply. Link to comment https://forums.phpfreaks.com/topic/168291-solved/#findComment-887671 Share on other sites More sharing options...
nrg_alpha Posted July 31, 2009 Share Posted July 31, 2009 No problem. Please don't forget to flag this thread as solved. Link to comment https://forums.phpfreaks.com/topic/168291-solved/#findComment-887682 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.