More fixes, sync with HTML5lib
Do a better job with the wrapper <div>s added by xhtmldiff and Maruku's to_html_tree method. More tests fixed.
This commit is contained in:
parent
3ca33e52b5
commit
3de374d6c1
20 changed files with 541 additions and 118 deletions
|
@ -1,5 +1,4 @@
|
|||
require 'cgi'
|
||||
require 'html5lib/filters'
|
||||
|
||||
module HTML5lib
|
||||
|
||||
|
@ -176,15 +175,6 @@ module HTML5lib
|
|||
end
|
||||
end
|
||||
|
||||
class HTMLSanitizeFilter < Filters::Base
|
||||
include HTMLSanitizeModule
|
||||
def each
|
||||
__getobj__.each do |token|
|
||||
yield(sanitize_token(token))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
class HTMLSanitizer < HTMLTokenizer
|
||||
include HTMLSanitizeModule
|
||||
def each
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue