12 lines
333 B
TypeScript
12 lines
333 B
TypeScript
|
|
/**
|
||
|
|
* Sanitize HTML.
|
||
|
|
*
|
||
|
|
* @param {Schema | null | undefined} [options]
|
||
|
|
* Configuration (optional).
|
||
|
|
* @returns
|
||
|
|
* Transform.
|
||
|
|
*/
|
||
|
|
export default function rehypeSanitize(options?: Schema | null | undefined): (tree: Root) => Root;
|
||
|
|
export type Root = import('hast').Root;
|
||
|
|
export type Schema = import('hast-util-sanitize').Schema;
|