class Loofah::Scrubbers::NewlineBlockElements

:nodoc:
This class probably isn’t useful publicly, but is used for #to_text’s current implemention

def initialize # rubocop:disable Lint/MissingSuper

rubocop:disable Lint/MissingSuper
:nodoc:
This class probably isn't useful publicly, but is used for #to_text's current implemention
def initialize # rubocop:disable Lint/MissingSuper
  @direction = :bottom_up
end

def scrub(node)

def scrub(node)
  return CONTINUE unless Loofah::Elements::LINEBREAKERS.include?(node.name)
  replacement = if Loofah::Elements::INLINE_LINE_BREAK.include?(node.name)
    "\n"
  else
    "\n#{node.content}\n"
  end
  node.add_next_sibling(Nokogiri::XML::Text.new(replacement, node.document))
  node.remove
end