struct

Sanitize::Adapter::LibXML2

Inherits Sanitize::Adapter / Struct / Value / Object

Constructors

new(builder : XML::Builder)
Source

Class methods

build(fragment : Bool, &)
Source
parse(html : String, fragment : Bool)
Source
process(policy : Policy, html : String, fragment : Bool = false)
Source
process(policy : Policy, node : XML::Node, fragment : Bool = false)
Source
process(policy : Policy, node : XML::Node, builder : XML::Builder, fragment : Bool = false)
Source
visit(processor : Processor, node : XML::Node, fragment : Bool)
Source

Instance methods

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