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 CHANGED
@@ -1,3 +1,6 @@
1
+ = 0.0.6
2
+ Add html escape.
3
+
1
4
  = 0.0.5
2
5
  Fix bug in generating index.html.
3
6
  Stop copy html files.
@@ -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
@@ -2,5 +2,5 @@ module Sc2epub
2
2
  require 'sc2epub/converter'
3
3
  require 'sc2epub/template'
4
4
  require 'sc2epub/main'
5
- VERSION = "0.0.5"
5
+ VERSION = "0.0.6"
6
6
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - takada-at