/** * Remove console methods * @private * @param {string} html HTML in string form * @returns {string} the modified value */ export declare function sanitizeConsoleMethods(html: string | any): any; /** * Remove Script tags and all onXXX functions * @private * @param {string} html HTML in string form * @returns {string} the modified value */ export declare function sanitizeHTML(html: string): string; /** * Takes a string and removes all html tags * @param {string} str The string to parse * @returns {string} The string minus html tags. */ export declare function stripHTML(str: string): string; /** * Remove all html tags except for the ones specified. * For example: White list to a specific set of accepted tags. * @param {string | number} html HTML in string form * @param {string} allowed Comma seperated string of allowed tags e.g. '

'' * @returns {string} the modified value */ export declare function stripTags(html: string | number, allowed?: string): string | number; /** * Un-escapes HTML, replacing encoded symbols with special characters. * Symbols taken from https://bit.ly/1iVkGlc * @private * @param {string} value HTML in string form * @returns {string} the modified value */ export declare function unescapeHTML(value: any): any; /** * Escapes HTML, replacing special characters with encoded symbols. * Symbols taken from https://bit.ly/1iVkGlc * @private * @param {string} unsafe HTML in string form * @returns {string} the modified value */ export declare function escapeHTML(unsafe?: string): string; /** * Sanitize URL to prevent XSS attacks * @private * @param {string} url The URL to sanitize * @returns {string} The sanitized URL */ export declare function sanitizeUrl(url: string): string; /** * Sanitize HTML content by whitelisting allowed tags and cleaning anchor URLs. * Used for scenarios like tooltips where you want to allow limited formatting * but prevent XSS attacks via event handlers, scripts, and unsafe URLs. * @param {string} html HTML content to sanitize * @param {string} allowedTags Whitelist of allowed tags (e.g., '') * @param {HTMLElement} container Optional element to populate content into * @returns {void|string} Returns void if container provided, else sanitized HTML */ export declare function sanitizeHTMLContent(html: string, allowedTags: string, container?: HTMLElement): void | string;