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:
parent
86a7577975
commit
0298868573
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue