summaryrefslogtreecommitdiff
path: root/django/utils/html.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a whole bunch of small docs typos, errors, and ommissions.Jacob Kaplan-Moss2009-04-031-1/+3
| | | | | | | | Fixes #8358, #8396, #8724, #9043, #9128, #9247, #9267, #9267, #9375, #9409, #9414, #9416, #9446, #9454, #9464, #9503, #9518, #9533, #9657, #9658, #9683, #9733, #9771, #9835, #9836, #9837, #9897, #9906, #9912, #9945, #9986, #9992, #10055, #10084, #10091, #10145, #10245, #10257, #10309, #10358, #10359, #10424, #10426, #10508, #10531, #10551, #10635, #10637, #10656, #10658, #10690, #10699, #19528. Thanks to all the respective authors of those tickets. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10371 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #9883: no longer do strange things with whitespace in the linebreaks ↵Jacob Kaplan-Moss2009-03-301-2/+2
| | | | | | filter. Thanks, keithb. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6965 -- Sped up the urlize and urlizetrunc filters. A nice patch from ↵Malcolm Tredinnick2008-07-191-2/+4
| | | | | | Andrew Badr. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7542 -- Fixed bug in urlize where it was appending 'http://' to the ↵Adrian Holovaty2008-06-261-26/+26
| | | | | | link text. Thanks for the patch and tests, devin git-svn-id: http://code.djangoproject.com/svn/django/trunk@7755 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #7355 -- Modified urlize utility to handle https:// addresses. Thanks ↵Russell Keith-Magee2008-06-191-1/+1
| | | | | | for the report and patch, clint. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #6279, #6514 -- Fixed some HTML escaping problems in the urlize filter.Malcolm Tredinnick2008-02-031-9/+14
| | | | | | | | Based on a patch from SmileyChris with some test additions from Rob Hudson. Thanks, both. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Minor style fixes.Gary Wilson Jr2007-12-111-11/+11
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@6911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #5657 -- Use string.ascii_letters instead of ascii.letters in the urlizeMalcolm Tredinnick2007-12-031-1/+1
| | | | | | | | filter to ensure consistent (and correct) results no matter what the server's locale setting might be. Thanks, Andrew Stoneman. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed some missed auto-escaping and URL quoting cases in the urlize filter.Malcolm Tredinnick2007-11-171-4/+15
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@6683 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Implemented auto-escaping of variable output in templates. Fully ↵Malcolm Tredinnick2007-11-141-7/+26
| | | | | | | | | | | | | | controllable by template authors and it's possible to write filters and templates that simulataneously work in both auto-escaped and non-auto-escaped environments if you need to. Fixed #2359 See documentation in templates.txt and templates_python.txt for how everything works. Backwards incompatible if you're inserting raw HTML output via template variables. Based on an original design from Simon Willison and with debugging help from Michael Radziej. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Cleaned up a couple unused imports and fixed docstrings to follow Python ↵Gary Wilson Jr2007-07-161-21/+22
| | | | | | Style Guide. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4310 -- Fixed a regular expression bug in `strip_entities` function ↵Gary Wilson Jr2007-07-151-1/+1
| | | | | | and added tests for several `django.utils.html` functions. Based on patch from Brian Harring. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Merged Unicode branch into trunk (r4952:5608). This should be fullyMalcolm Tredinnick2007-07-041-16/+25
| | | | | | | | | backwards compatible for all practical purposes. Fixed #2391, #2489, #2996, #3322, #3344, #3370, #3406, #3432, #3454, #3492, #3582, #3690, #3878, #3891, #3937, #4039, #4141, #4227, #4286, #4291, #4300, #4452, #4702 git-svn-id: http://code.djangoproject.com/svn/django/trunk@5609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #4657 -- Fixed an error in an edge case of the urlizetrunc filter.Malcolm Tredinnick2007-06-231-7/+9
| | | | | | | Thanks, SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Backed out a portion of [4919] until I can make it worth smoothly withMalcolm Tredinnick2007-04-051-1/+1
| | | | | | | oldforms. Refs #3924. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4933 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Made django.utils.html.escape() work with unicode strings (and unicode-likeMalcolm Tredinnick2007-04-041-1/+2
| | | | | | | objects). Refs #3897. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #3532 -- Made spaceless template tag remove all spaces, rather than ↵Russell Keith-Magee2007-04-011-2/+2
| | | | | | preserving a single space. Thanks for the suggestion, ampaze@gmx.net. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly ↵Adrian Holovaty2006-05-021-1/+1
| | | | | | backwards-incompatible. Please read http://code.djangoproject.com/wiki/RemovingTheMagic for upgrade instructions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed a bunch of errors detected by pychecker -- unneeded imports and ↵Adrian Holovaty2006-01-191-3/+4
| | | | | | shadows of builtin variable names git-svn-id: http://code.djangoproject.com/svn/django/trunk@2058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1227 -- Fixed problem with new {% spaceless %} tag. It now normalizes ↵Adrian Holovaty2006-01-151-2/+2
| | | | | | spaces to a single space rather than no spaces git-svn-id: http://code.djangoproject.com/svn/django/trunk@1969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #1067 and #276 -- Added a {% spaceless %} tag, available in all templatesAdrian Holovaty2006-01-151-0/+4
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@1967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Fixed #429 -- Small cleanup to code in utils/html.py. Thanks, pb@e-scribe.comAdrian Holovaty2005-09-021-17/+17
| | | | git-svn-id: http://code.djangoproject.com/svn/django/trunk@611 bcc190cf-cafb-0310-a4f2-bffc1f526a37
* Imported Django from private SVN repository (created from r. 8825)Adrian Holovaty2005-07-131-0/+110
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3 bcc190cf-cafb-0310-a4f2-bffc1f526a37