~cjwatson/lazr.restful/py3-doctest-trivial

Viewing all changes in revision 265.1.1.

  • Committer: Colin Watson
  • Date: 2020-09-06 22:57:35 UTC
  • mto: This revision was merged to the branch mainline in revision 266.
  • Revision ID: cjwatson@canonical.com-20200906225735-mn4ia8a2ozh688q5
Remove lazr.restful.utils.safe_js_escape.

Launchpad hasn't used it since 2012, and it was a confusing interface in
that it combined JavaScript and HTML escaping.  If any code is still using
this, it should use cgi.escape/html.escape (if necessary) and json.dumps
directly instead.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: