Skip to content

Provide missing examples from the built-in templatetags and filters #19244 #509

Merged
merged 2 commits into from Nov 13, 2012

2 participants

@pydanny
pydanny commented Nov 9, 2012

Examples provided for:

  • comment
  • templatetag
  • escape
  • force_escape
  • timesince
  • timeuntil
@aaugustin aaugustin and 1 other commented on an outdated diff Nov 9, 2012
docs/ref/templates/builtins.txt
@@ -1542,6 +1559,13 @@ string. This is useful in the rare cases where you need multiple escaping or
want to apply other filters to the escaped results. Normally, you want to use
the :tfilter:`escape` filter.
+For example, if you want to catch the ``<paragraph>`` HTML elements created by
@aaugustin
Django member
aaugustin added a note Nov 9, 2012

Could you use the actual HTML tag name -- <p>?

@pydanny
pydanny added a note Nov 13, 2012

@aaugustin The pull request has been updated to match your request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@aaugustin aaugustin merged commit e27a43c into django:master Nov 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.