UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

8 lines (7 loc) 329 B
import GirafeConfig from '../configuration/girafeconfig.js'; /** * Use DOMPurify.sanitize to remove potentially harmful html/js code. * @param unsanitized the raw text to sanitize. * @param config Allowed tags and elements in a string. */ export declare const sanitize: (unsanitized: string, config: GirafeConfig) => string;