Use existing html pipeline based sanitization for links in custom fields
|Assignee:||Marius BALTEANU||% Done:|
these patches, extracted from Planio, introduce a standalone HTML sanitizer class (based on the existing code from the common mark formatter) and use it to replace sanitization of links generated by custom fields, including the special
rel="noopener" treatment for external / target_blank links.
Uses the new html sanitizer for links rendered by custom fields (#37750).
Patch by Jens Krämer.
Fix RuboCop offenses Layout/EmptyLinesAroundModuleBody, Layout/EmptyLinesAroundClassBody, and Layout/TrailingEmptyLines in html_sanitizer.rb (#37750).
Fix RuboCop offense Layout/FirstArrayElementIndentation in html_sanitizer.rb (#37750).