/******* * Expand selected named HTML entities into their numeric equivalents. * * This performs a conservative, explicit rewrite of a small allowlist of * named entities (e.g. `©`) into numeric character references * (e.g. `©`). * * Behavior: * - Leaves the core XML/HTML entities untouched: * `&`, `<`, `>`, `"`, `'` * - Rewrites only entities explicitly listed in `htmlNamedToNumeric`. * - Leaves unknown entities unchanged so that later parsing or validation * stages can decide how to handle them. * * Rationale: * - Numeric entities are unambiguous and safer to carry across parsing * boundaries (HTML ↔ XML ↔ Hson). * - Keeping the mapping explicit avoids silently expanding entities that * may not be universally supported or desired. * * Scope: * - This is *not* a general HTML entity decoder. * - It does not handle numeric-to-character decoding. * - It does not validate whether an entity is semantically valid in context. * * @param input - Source text potentially containing named HTML entities. * @returns Text with known named entities expanded to numeric references. *******/ export declare function expand_entities(input: string): string; //# sourceMappingURL=expand-entities.d.ts.map