/********* * Escape literal angle brackets inside quoted attribute values only. * * This performs a single-pass state-machine scan over the source string and * replaces `<` → `<` and `>` → `>` *only* when the parser is inside a * quoted attribute value (`"..."` or `'...'`) within a tag. * * Everything else is left untouched: * - Text nodes are not escaped. * - Tag structure (``) is preserved verbatim. * - Unquoted attribute values are not modified. * * This is intentionally not regex-based: * - Regex splitting fails in the presence of nested quotes or malformed attrs. * - A small explicit state machine is more predictable and debuggable here. * * States tracked: * - Text: outside of any tag * - Tag: inside `< ... >` but not inside a quoted value * - EqWait: just saw `=` and are waiting to see if a quoted value begins * - QuotedD / QuotedS: inside `"..."` or `'...'` attribute values * * Use case: * - Prevent accidental tag breaks when attribute values contain `<` or `>` * that should be treated as literal text, not markup. * * @param src - Raw markup string. * @returns Markup with angle brackets escaped *only* inside quoted attributes. *********/ export declare function esc_attrs_quoted_angles(src: string): string; //# sourceMappingURL=preflight-attrs-escaping.d.ts.map