sc2epub 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +3 -0
- data/lib/sc2epub/converter.rb +2 -0
- data/lib/sc2epub.rb +1 -1
- metadata +2 -2
data/CHANGES
CHANGED
data/lib/sc2epub/converter.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
class Sc2epub::Converter
|
2
2
|
require 'nkf'
|
3
3
|
require 'fileutils'
|
4
|
+
require 'cgi'
|
4
5
|
def initialize env, root, output
|
5
6
|
@root = path(root)
|
6
7
|
@output = output
|
@@ -87,6 +88,7 @@ class Sc2epub::Converter
|
|
87
88
|
s = NKF::nkf('-wxm0', s)
|
88
89
|
end
|
89
90
|
title = title(local(path))
|
91
|
+
s = CGI::escapeHTML(s)
|
90
92
|
s = @template.xhtml('title'=>local(path), 'body'=>s)
|
91
93
|
npath = title+".html"
|
92
94
|
if @dirstack.last and not @dirstack.last[:src]
|
data/lib/sc2epub.rb
CHANGED