target_attributes_filter
Security covered
Override the hyperlink target attribute using text formats. Choose the target attribute value and whether it applies to all links, only internal, or only external links.
Usage
- Download and install the module. Recommended install method is composer:
composer require drupal/target_attributes_filter - Go to the "Text formats and editors" configuration page (/admin/config/content/formats).
- Edit the desired text format.
- Enable the "Add target attribute to links" filter.
- Review available configurations under filter settings and save changes.