silverstripe/silverstripe-framework — pull request #3005 by tractorcow (2014-04-02 04:22:21+00:00)
Title: Better encoding of javascript

Fixes #2988
This incorporates more rigorous encoding of JS strings for the sake of robustness.
Missing test cases for these functions are now included.