UNPKG

@focusconsulting/auto-a11y

Version:

A powerful tool that combines AI with accessibility-first element selection for Playwright tests

14 lines (13 loc) 490 B
/** * Simplifies HTML by keeping only essential elements and attributes * @param html The HTML content to simplify * @returns Simplified HTML string */ export declare function simplifyHtml(html: string): string; /** * Extracts and sanitizes the body content from HTML * @param html The full HTML content * @param description The element description to help focus the extraction * @returns Sanitized body content */ export declare function extractBodyContent(html: string): string;