04-20-2012, 10:18 AM
[eluser]CroNiX[/eluser]
I wouldn't. I'd store the raw url and wrap the <a> tags around it when displaying it in the view.
I wouldn't. I'd store the raw url and wrap the <a> tags around it when displaying it in the view.
Code:
if (strpos(strtolower($url), 'youtube.com') !== FALSE)
{
//$url is from youtube.
}