class Trenni::Sanitize::Fragment

Constants

ALLOWED_TAGS
STANDARD_ATTRIBUTES

Public Instance Methods

doctype(string) click to toggle source
# File lib/trenni/sanitize/fragment.rb, line 67
def doctype(string)
end
filter(node) click to toggle source
# File lib/trenni/sanitize/fragment.rb, line 57
def filter(node)
        if attributes = ALLOWED_TAGS[node.name]
                node.limit_attributes(attributes)
                
                node.accept!
        else
                node.skip!
        end
end
instruction(string) click to toggle source
# File lib/trenni/sanitize/fragment.rb, line 70
def instruction(string)
end