UNPKG

lit-xml

Version:

Burning your XML documents to the ground? Yes please. In the mean time, let's use lit-xml.

15 lines 597 B
import { LitXmlOptions } from './lit-xml-options.js'; export declare function valueToString(value: unknown): string; export declare function format(xml: string, { format, indent }: Pick<LitXmlOptions, 'format' | 'indent'>): string; /** * Escapes XML characters * " => &quot; * ' => &apos; * < => &lt; * > => &gt; * & => &amp; * @see https://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents#answer-1091953 * @param text the input text to be escaped */ export declare function sanitize(text: string): string; //# sourceMappingURL=xml-helpers.d.ts.map