I could not find any other references to forward escaping than JSON.

The idea would be to make it more practical to use JSON inside a
<script> tag.

Fix #1097