interweave
Version:
React library to safely render HTML, filter attributes, autowrap text, autolink, and much more.
12 lines • 468 B
TypeScript
import { ElementAttributes, FilterInterface } from './types';
export declare class Filter implements FilterInterface {
/**
* Filter and clean an HTML attribute value.
*/
attribute<K extends keyof ElementAttributes>(name: K, value: ElementAttributes[K]): ElementAttributes[K] | null | undefined;
/**
* Filter and clean an HTML node.
*/
node(name: string, node: HTMLElement): HTMLElement | null;
}
//# sourceMappingURL=Filter.d.ts.map