You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: clean_html.rb
    path of file: ./repos/devdocs/lib/docs/filters/openjdk
    
    the code of the file until where you have to start completion: # coding: utf-8
# frozen_string_literal: true

module Docs
  class Openjdk
    class CleanHtmlFilter < Filter
     
    
      def call
        css('.topNav', '.subNav', '.bottomNav', '.legalCopy', 'noscript', '.subTitle', 'hr').remove

        # Preserve internal fragment links
        # Transform <a name="foo"><!-- --></a><bar>text</bar>
        #      into <bar id="foo">text</bar>
        css('a[name]','a[id]').each do |node|
          if node.children.all?(&:blank?)
            node.next_element['id'] = (node['id'] || node['name'])if node.next_element
            node.remove
          end
        end