diff --git a/core/modules/filter/src/Plugin/Filter/FilterHtml.php b/core/modules/filter/src/Plugin/Filter/FilterHtml.php
index 9d6d70f..af85bd6 100644
--- a/core/modules/filter/src/Plugin/Filter/FilterHtml.php
+++ b/core/modules/filter/src/Plugin/Filter/FilterHtml.php
@@ -203,21 +203,6 @@ public function getHTMLRestrictions() {
}
}
- // When is allowed and the nofollow setting is enabled, and the rel
- // attribute is not already generically allowed, then whitelist the 'rel'
- // attribute, but only allow the 'nofollow' value.
- if ($this->settings['filter_html_nofollow'] && isset($restrictions['allowed']['a']) && $restrictions['allowed']['a'] !== TRUE) {
- // If previously no attributes were allowed on , that is now changing.
- if ($restrictions['allowed']['a'] === FALSE) {
- $restrictions['allowed']['a'] = [];
- }
- // If the 'rel' attribute is not yet whitelisted, then do so now.
- if (!isset($restrictions['allowed']['a']['rel'])) {
- $restrictions['allowed']['a']['rel'][] = 'nofollow';
- $restrictions['allowed']['a']['rel'] = array_unique($restrictions['allowed']['a']['rel']);
- }
- }
-
// The 'style' and 'on*' ('onClick' etc.) attributes are always forbidden,
// and are removed by Xss::filter().
// The 'id', 'lang', and 'dir' attributes apply to all elements and are