views:

20

answers:

1

Many of my users are typing in plain URL's and not using the Textile format for creating links. I would like Textile to just make the URL's linkable to the URL's. I don't really need to worry about XSS or anything malicious because it is an internal network with a very small group of users. What would be the best way to go about achieving this functionality?

I am using the Ruby version of RedCloth.

+1  A: 

I'm not sure if RedCloth can turn URLs into clickable links, but there's a Rails text helper called auto_link that can.

Andreas
Interesting. I am already sending the data through Textile so sending it through another parser isn't exactly what I want to do.
Sixty4Bit