Welcome Guest, Not a member yet? Register   Sign In
Auto detecting urls inside text - urls have some arabic letters
#3

(This post was last modified: 03-09-2017, 11:51 AM by khashabawy.)

(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



Theme © iAndrew 2016 - Forum software by © MyBB