site/node_modules/stringify-entities/lib/util/to-named.d.ts

16 lines
347 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
/**
* Configurable ways to encode characters as named references.
*
* @param {number} code
* @param {number} next
* @param {boolean|undefined} omit
* @param {boolean|undefined} attribute
* @returns {string}
*/
export function toNamed(
code: number,
next: number,
omit: boolean | undefined,
attribute: boolean | undefined
): string