class Sanitize::Processor

Overview

A processor traverses the HTML/XML tree, applies transformations through the policy and passes the result to the adapter which then builds the result.

Defined in:

processor.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Constructor Detail

def self.new(policy : Policy, adapter : Adapter) #

[View source]

Instance Method Detail

def process_element(orig_name : String, attributes : Hash(String, String), name, &) #

[View source]
def process_element(name : String, attributes : Hash(String, String), &) #

[View source]
def process_text(text : String) #

[View source]
def reset #

[View source]