• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto detecting urls inside text - urls have some arabic letters

#3
(03-09-2017, 10:52 AM)zploskey Wrote: You need to URL encode the tag to get it to work with auto_link. It looks like this works, at least for this simple example.


Code:
$this->load->helper('url');
$url = "https://soundeals.com/community/tag/";
$tag = "ميكروفون";
echo urldecode(auto_link($url . urlencode($tag)));

i have the following code please focus :

PHP Code:
$text "an article text is just like this and we are inside the body of the article and there is a url inside the text with some arabic letters like this one

https://soundeals.com/community/tag/ميكروفون

i tried to use the auto_url to get the urls converted to < a >tags but it fails as folloing"
;

echo 
auto_link($text); 

i do not have a url in a variable i have it inside a text !!
Reply


Messages In This Thread
RE: Auto detecting urls inside text - urls have some arabic letters - by khashabawy - 03-09-2017, 11:50 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.