Menu
Hi Friends,
I am having trouble preserving URL inside a php string. I am using an API that fetches twitter tweets and contains a URL in each tweet which I want to display to the user but right now all the text is getting converted to plain text and the url is there but not clickable. Here’s my code snippet –
[code]
foreach ($sArray as $key=>$value) {
foreach ($value as $iKey => $iValue) {
switch ($key) {
case “url”:
$output .= “$iValue”;
break;
}}
I tried htmlentities() but did not worked. Can anyone help me???
Thanks
Mick
And whats the normal way to wrap text when you display it, should i use wordwrap() ???