class Loofah::Scrubbers::NoFollow


=> “ohai! <a href=‘www.myswarmysite.com/’ rel=”nofollow“>I like your blog post</a>”
Loofah.html5_fragment(link_farmers_markup).scrub!(:nofollow)
link_farmers_markup = “ohai! <a href=‘www.myswarmysite.com/’>I like your blog post</a>”
:nofollow adds a rel=“nofollow” attribute to all links
=== scrub!(:nofollow)

def initialize # rubocop:disable Lint/MissingSuper

rubocop:disable Lint/MissingSuper
def initialize # rubocop:disable Lint/MissingSuper
  @direction = :top_down
end

def scrub(node)

def scrub(node)
  return CONTINUE unless (node.type == Nokogiri::XML::Node::ELEMENT_NODE) && (node.name == "a")
  append_attribute(node, "rel", "nofollow")
  STOP
end