//! Helpers for emitting / parsing the resumability payload.
use ResumePayload;
/// Serialize a `ResumePayload` to a compact JSON blob suitable for inlining
/// in `<script type="resuma/state">`.
///
/// Escapes `<`, `>`, `&`, and Unicode line separators so user-controlled signal
/// data cannot break out of the script block (XSS).
/// Prevent `</script>` and HTML injection from serialized JSON embedded in HTML.