Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Alias for escape_javascript

#6558

Hi, escape_javascript is used a lot in views that render javascript and can difficult the readability of the code. The attached patch ads an alias called js, so the code stays cleaner. Its similar to the h alias for html_escape.

Reported by Diego Carrion · March 10th, 2011 @ 11:20 PM

State: open
Milestone: 3.1
Assigned to: Santiago Pastorino Santiago Pastorino
Importance: Low

Activity

  1. Santiago Pastorino
    Santiago Pastorino
    • State changed from new to open
    • Milestone set to 3.1
    • Importance changed from to Low

    Hey Diego, I don't think that's a good idea. We already have a j helper to escape json.
    The best is to deprecate the helper for 3-0-stable and remove it from master.

    March 11th, 2011 @ 01:03 AM