Welcome Guest, Not a member yet? Register   Sign In
Does anyone here know how to extract url on textarea using CI?
#3

[eluser]coderedmax[/eluser]
@bubbafoley

thanks! I didn't know CI have that features. :vampire:

anyway I got also alternative solution:
Code:
$content = $this->input->post('discussion_content', TRUE);
$find_url = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $content);

almost same but yours is easier. =) thanks again!


Messages In This Thread
Does anyone here know how to extract url on textarea using CI? - by El Forum - 06-14-2011, 11:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB