- Timestamp:
- 08/26/08 15:51:45 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/regressiontests/defaultfilters/tests.py
r8535 r8599 51 51 52 52 >>> escapejs(u'"double quotes" and \'single quotes\'') 53 u'\\ "double quotes\\" and \\\'single quotes\\\''53 u'\\x22double quotes\\x22 and \\x27single quotes\\x27' 54 54 55 55 >>> escapejs(ur'\ : backslashes, too') 56 u'\\ \\: backslashes, too'56 u'\\x5C : backslashes, too' 57 57 58 58 >>> escapejs(u'and lots of whitespace: \r\n\t\v\f\b') 59 u'and lots of whitespace: \\ r\\n\\t\\v\\f\\b'59 u'and lots of whitespace: \\x0D\\x0A\\x09\\x0B\\x0C\\x08' 60 60 61 61 >>> escapejs(ur'<script>and this</script>') 62 u' <script>and this<\\/script>'62 u'\\x3Cscript\\x3Eand this\\x3C/script\\x3E' 63 63 64 64 >>> fix_ampersands(u'Jack & Jill & Jeroboam')
