Skip to content

Commit e77fde8

Browse files
committed
Ensure the Sammy ♥ isn't corrupted.
1 parent 4b9379d commit e77fde8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GEM
99
highlight (1.1.3)
1010
activesupport (>= 2.0.0)
1111
multi_json (1.0.4)
12-
nokogiri (1.4.4)
12+
nokogiri (1.5.0)
1313
rack (1.2.1)
1414
rdiscount (1.6.8)
1515

lib/toc.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def root
6868

6969
def text
7070
node.
71-
inner_html.
71+
inner_html({ :encoding => 'US-ASCII' }).
7272
gsub(/<[^>]+>/, '').
7373
sub(/\([^\)]+\)/, '()')
7474
end

0 commit comments

Comments
 (0)