#33405: Documentation for template filter 'escapejs' is extremely unclear -------------------------------+-------------------------------------- Reporter: Jon Ribbens | Owner: nobody Type: Bug | Status: new Component: Documentation | Version: 4.0 Severity: Normal | Resolution: 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 Jon Ribbens):
* status: closed => new * resolution: invalid => Comment: Reopening this as the comment doesn't address it at all I'm afraid. Answering your last question first, generally it's not safe, and you shouldn't do this. escapejs is just to put put escape sequences into strings. What does "put escape sequences into strings" ''mean''? That is precisely what I was doing in my example above, which you just said was wrong. As far as I can see, actually it is safe. If it isn't, can anyone explain why and, more importantly, explain what escapejs ''should'' be used for. -- Ticket URL: <https://code.djangoproject.com/ticket/33405#comment:2> 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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.c88ff6030570c2837efb41c078200dbf%40djangoproject.com.