#33603: Backslashes in template tag arguments are escaped
-------------------------------------+-------------------------------------
     Reporter:  bhch                 |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Template system      |                  Version:  3.2
     Severity:  Normal               |               Resolution:  wontfix
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * type:  Bug => Cleanup/optimization
 * resolution:   => wontfix


Comment:

 Thanks for the report, however I don't think Django can do much here, and
 any change would be backward incompatible. Please also take into account
 that it works when `value` is passed directly, e.g.
 {{{
 {% string_replace "My address\r\nwith newline characters" "\r\n"  "," %}
 }}}
 I'd recommend to create a new filter, e.g. `{% replace_newline value %}`,
 pass arguments via context variables, or escape/unescape arguments in
 `string_replace()`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33603#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107017fd0278906-44cf9fda-8a64-4d51-9d7c-bcfc56095b6a-000000%40eu-central-1.amazonses.com.

Reply via email to