sc2epub 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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