Render Stone snapshot into an inline script tag.
Delegates to @stone-js/use-view's XSS-safe serializer: the snapshot JSON is escaped (< > &, U+2028/U+2029) so user-controlled data returned by a page handle() cannot break out of the <script> tag. The payload stays valid JSON for the client parser.
@stone-js/use-view
< > &
handle()
<script>
The snapshot JSON to render.
The script tag.
Render Stone snapshot into an inline script tag.
Delegates to
@stone-js/use-view's XSS-safe serializer: the snapshot JSON is escaped (< > &, U+2028/U+2029) so user-controlled data returned by a pagehandle()cannot break out of the<script>tag. The payload stays valid JSON for the client parser.