3de374d6c1
Do a better job with the wrapper <div>s added by xhtmldiff and Maruku's to_html_tree method. More tests fixed.
16 lines
293 B
Ruby
16 lines
293 B
Ruby
require 'html5lib/filters/base'
|
|
require 'html5lib/sanitizer'
|
|
|
|
module HTML5lib
|
|
module Filters
|
|
class HTMLSanitizeFilter < Base
|
|
include HTMLSanitizeModule
|
|
def each
|
|
__getobj__.each do |token|
|
|
yield(sanitize_token(token))
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|