site/node_modules/stringify-entities/lib/index.d.ts

32 lines
787 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
/**
* Encode special characters in `value`.
*
* @param {string} value
* Value to encode.
* @param {Options} [options]
* Configuration.
* @returns {string}
* Encoded value.
*/
export function stringifyEntities(
value: string,
options?: Options | undefined
): string
/**
* Encode special characters in `value` as hexadecimals.
*
* @param {string} value
* Value to encode.
* @param {LightOptions} [options]
* Configuration.
* @returns {string}
* Encoded value.
*/
export function stringifyEntitiesLight(
value: string,
options?: import('./core.js').CoreOptions | undefined
): string
export type Options = import('./core.js').CoreOptions &
import('./util/format-smart.js').FormatSmartOptions
export type LightOptions = import('./core.js').CoreOptions