mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #2456 -- Added backslash escaping to addslashes, which is necessary once
you start escaping other things. Thanks, tom@eggdrop.ch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
93597d051d
commit
670e8ab704
2 changed files with 4 additions and 1 deletions
|
@ -15,6 +15,9 @@ r"""
|
|||
>>> addslashes('"double quotes" and \'single quotes\'')
|
||||
'\\"double quotes\\" and \\\'single quotes\\\''
|
||||
|
||||
>>> addslashes(r'\ : backslashes, too')
|
||||
'\\\\ : backslashes, too'
|
||||
|
||||
>>> capfirst('hello world')
|
||||
'Hello world'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue