Skip to content

scrubber improvements

Two suggested improvements:

One: remove strip <a> tags w/o href (since we remove all other attributes it doesn't do anything).

NB: this currently removes the entire node, including its contents; I can change it to keep the contents, but that's more work.

Two: mark external links as such by appending the text [external link] the hostname; e.g.

<a href="https://example.com" rel="external nofollow noopener" target="_blank">link</a> [example.com]

@eighthave @TheLastProject

Edited by FC (Fay) Stegerman

Merge request reports