Fix S5 Unicode

Make sure sanitize_xhtml and sanitize_html are set to utf-8 encoding.
Also, a stylesheet tweak.
This commit is contained in:
Jacques Distler 2007-06-07 17:30:42 -05:00
parent 86a7577975
commit 0298868573
2 changed files with 3 additions and 2 deletions

View file

@ -22,11 +22,11 @@ module Sanitize
include HTML5lib
def sanitize_xhtml(html)
XHTMLParser.parseFragment(html.to_ncr, :tokenizer => HTMLSanitizer).to_s
XHTMLParser.parseFragment(html.to_ncr, {:tokenizer => HTMLSanitizer, :encoding=>'utf-8' }).to_s
end
def sanitize_html(html)
HTMLParser.parseFragment(html, :tokenizer => HTMLSanitizer).to_s
HTMLParser.parseFragment(html, {:tokenizer => HTMLSanitizer, :encoding=>'utf-8' }).to_s
end
def sanitize_rexml(tree)

View file

@ -336,6 +336,7 @@ font-size:70%;
div.rightHandSide {
border-left:1px dotted #ccc;
border-bottom:1px dotted #ccc;
float:right;
font-size:80%;
margin-left:0.7em;