accessibility_filters
No security coverage
The Accessibility Filters module provides text filters that automatically remove empty elements for accessibility compliance. This addresses common accessibility issues where content editors create empty headings or links, which causes problems for screen readers and violates WCAG guidelines.
The module includes two filters:
- Empty Headings Filter: Converts empty heading tags (H1-H6) to paragraph tags, preserving styling while fixing semantic issues.
- Empty Links Filter: Completely removes empty anchor tags that serve no purpose.
Use this module when you have content editors who create empty elements for spacing, or when migrating content that contains accessibility violations.
Usage
After installation, go to Configuration > Content authoring > Text formats and editors and edit your desired text format. Enable one or both filters from the enabled filters list. The filters automatically process content during display.