Stone.js API
    Preparing search index...
    • Render a complete snapshot <script> tag with the value serialized safely.

      The tag uses type="application/json" so the browser never executes it; the client reads element.textContent and parses it. The id is escaped defensively even though it is normally a constant.

      Parameters

      • value: unknown

        The snapshot value (already a JSON string, or any serializable value).

      • id: string = STONE_SNAPSHOT_ID

        The element id (defaults to STONE_SNAPSHOT_ID).

      Returns string

      The <script> HTML string.