htmlescape

Properly escape JSON for usage as an object literal inside of a `<script>` tag

Browse on unpkg