Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

More accurate documentation for how the urlize template works. Refs #…

…9189.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0e27c4921048250c668dcb06e010a137de6f66e0 1 parent bda5ed5
Chris Beaven authored June 27, 2011

Showing 1 changed file with 9 additions and 5 deletions. Show diff stats Hide diff stats

  1. 14  docs/ref/templates/builtins.txt
14  docs/ref/templates/builtins.txt
@@ -2162,12 +2162,16 @@ urlize
2162 2162
 
2163 2163
 Converts URLs in text into clickable links.
2164 2164
 
2165  
-Only works for .com, .net, and .org top level domains.
  2165
+Works on links prefixed with ``http://``, ``https://``, or ``www.``. For
  2166
+example, ``http://goo.gl/aia1t`` will get converted but ``goo.gl/aia1t``
  2167
+won't.
2166 2168
 
2167  
-Works on links beginning with ``http://``, ``https://``, or ``www.`` and
2168  
-ending with ``.org``, ``.net`` or ``.com``. Links can have trailing punctuation
2169  
-(periods, commas, close-parens) and leading punctuation (opening parens) and
2170  
-``urlize`` will still do the right thing.
  2169
+Also works on domain-only links ending in one of the common ``.com``, ``.net``,
  2170
+or ``.org`` top level domains. For example, ``djangoproject.com`` will still
  2171
+get converted.
  2172
+
  2173
+Links can have trailing punctuation (periods, commas, close-parens) and leading
  2174
+punctuation (opening parens) and ``urlize`` will still do the right thing.
2171 2175
 
2172 2176
 Links generated by ``urlize`` have a ``rel="nofollow"`` attribute added
2173 2177
 to them.

0 notes on commit 0e27c49

Please sign in to comment.
Something went wrong with that request. Please try again.