markdown-to-jsx
Version:
A very fast and versatile markdown toolchain. AST, React, React Native, SolidJS, Vue, Markdown, and HTML output available with full customization.
9 lines (8 loc) • 419 B
text/typescript
/**
* Decode a single HTML entity reference using the browser's native HTML parser.
* Returns undefined if decoding fails or changes nothing (unknown entity).
*/
declare function decodeEntity(name: string): string | undefined;
/** Empty: the browser build decodes through the DOM, so no entity table ships. */
declare var NAMED_CODES_TO_UNICODE: Record<string, string>;
export { NAMED_CODES_TO_UNICODE, decodeEntity };