id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 24466 Improve consistency of JavaScript escaping in the admin Tim Graham Tim Graham Escaping of values inserted into JavaScript code should always be done in the template rather than in the view (since context values could be reused in a template outside of JavaScript where JS escaping isn't desired). Some values like model `verbose_name` aren't currently escaped and it wouldn't hurt to add escaping there. Cleanup/optimization closed contrib.admin dev Normal fixed Accepted 1 0 0 0 0 0