UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

27 lines (26 loc) 1.06 kB
export interface SanitizerConfig { additionalAtributes?: string[] | undefined; additionalDataUriTags?: string[] | undefined; additionalTags?: string[] | undefined; additionalUriSafeAttributes?: string[] | undefined; allowAriaAttributes?: boolean | undefined; allowDataAttributes?: boolean | undefined; allowUnknownProtocols?: boolean | undefined; allowSelfcloseInAttributes?: boolean | undefined; allowedAttributes?: string[] | undefined; allowedTags?: string[] | undefined; allowedNamespaces?: string[] | undefined; allowedUriRegex?: RegExp | undefined; forbiddenAttributes?: string[] | undefined; forbiddenContents?: string[] | undefined; forbiddenTags?: string[] | undefined; } export declare class SanitizerService { private static instance; private constructor(); private defaultConfig; static getInstance(): SanitizerService; sanitizeHtml(input: string | Node, config?: SanitizerConfig | null): string; configure(config: SanitizerConfig): void; private parseConfig; }