rails/rails — pull request #3354 by lawrencepit (2011-10-18 01:08:41+00:00)
Title: Allow to_json output to embed within <script> tags in HTML output.

In single-page-designs an oft-used pattern is to embed the initialisation data as JSON within the HTML page output. E.g.:

This could result in the following output:

"}]);

Browsers will complain about this, because within `