Part of the Search ecosystem · 126 projects
This module provides a Search API preprocess plugin to remove specific HTML elements, like sidebars or unwanted content, from fields before they are indexed. This helps refine search results by cleaning up the indexed HTML.
Includes a Search API preprocess plugin that can be used to remove certain elements from markup before it is indexed. Useful when indexing "Rendered HTML" entity fields that contain sidebars or other unwanted content.
How to use
1. Install the module
2. Go to your Search API index
3. Enable the HTML Element Filter plugin
4. Configure the plugin - select the fields you want to process and the elements that need to be removed, using CSS selectors (e.g. To remove sidebars with the "my-sidebar" class, add .my-sidebar)
5. If the HTML filter plugin is enabled, make sure the HTML Element Filter plugin runs before it in the Preprocess index order
Ask your assistant about Search API HTML Element Filter
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Search ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.7 | Stable | 8–11 | Jul 17, 2026 | ||
| 1.0.6 | Stable | 8–11 | Jun 17, 2026 | ||
| 1.0.5 | Stable | 8–11 | Jun 15, 2026 | ||
| 1.0.4 | Stable | 8–10 | Oct 6, 2023 | ||
| 1.0.x-dev | Dev | 8–11 | Oct 6, 2023 | ||
| 1.0.3 | Stable | 8–10 | Mar 3, 2023 | ||
| 1.0.2 | Stable | 8–10 | Mar 3, 2023 | ||
| 1.0.1 | Stable | 8–10 | Mar 3, 2023 | ||
| 1.0.0 | Stable | 8–10 | Mar 3, 2023 |