struct Sanitize::Adapter::LibXML2

Included Modules

Defined in:

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Sanitize::Adapter

end_tag(name : String, attributes : Hash(String, String)) : Nil end_tag, start_tag(name : String, attributes : Hash(String, String)) : Nil start_tag, write_text(text : String) : Nil write_text

Constructor Detail

def self.new(builder : XML::Builder) #

Class Method Detail

def self.build(fragment : Bool, &) #

def self.parse(html : String, fragment : Bool) #

def self.process(policy : Policy, html : String, fragment : Bool = false) #

def self.process(policy : Policy, node : XML::Node, fragment : Bool = false) #

def self.process(policy : Policy, node : XML::Node, builder : XML::Builder, fragment : Bool = false) #

def self.visit(processor : Processor, node : XML::Node, fragment : Bool) #

Instance Method Detail

def end_tag(name : String, attributes : Hash(String, String)) : Nil #

def start_tag(name : String, attributes : Hash(String, String)) : Nil #

def write_text(text : String) : Nil #