If you have text coming from a database such as:
"New Apple TV Offers 8 GB of Internal Storage, 256 MB RAM http://t.co/fQ7rquF"
Is there a helper method that takes that text and wraps the web address as a anchor tag?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Off the top of my head I would run a regular expression to match a link pattern and throw the anchor tags around it.
Found this on google:
It looks for “http://” followed by anything that’s not a space, separated by word boundaries.