Legend:

'''Note: There is a built in template tag called [http://docs.djangoproject.com/en/dev/ref/templates/builtins/#urlize urlize] that does the same thing.'''

2

3

1

4

The following filter will parse out links from the text passed to it and generate anchor tags for them. It will also insert spaces into the textual part of the link, so that long links break properly. Also, you may pass an argument to the filter, specifying the `class` attribute of the link.