This project is not covered by Drupal’s security advisory policy.

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.

Supporting organizations: 

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Accessibility, Content display
  • Created by czunigaco on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases