method

process_node

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: HTML::WhiteListSanitizer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

process_node(node, result, options) protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionview/lib/action_view/vendor/html-scanner/html/sanitizer.rb, line 153
    def process_node(node, result, options)
      result << case node
        when HTML::Tag
          if node.closing == :close
            options[:parent].shift
          else
            options[:parent].unshift node.name
          end

          process_attributes_for node, options

          options[:tags].include?(node.name) ? node : nil
        else
          bad_tags.include?(options[:parent].first) ? nil : node.to_s.gsub(/</, "<")
      end
    end
Register or log in to add new notes.