struct Sanitize::Adapter::LibXML2

Included Modules

Defined in:

adapter/libxml2.cr

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) #

[View source]

Class Method Detail

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

[View source]
def self.parse(html : String, fragment : Bool) #

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

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

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

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

[View source]

Instance Method Detail

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

[View source]
def start_tag(name : String, attributes : Hash(String, String)) : Nil #

[View source]
def write_text(text : String) : Nil #

[View source]