Method: HTML#to_aozora

Defined in:
lib/html.rb

#to_aozora(pre_html: false) ⇒ Object

青空文庫形式に変換



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/html.rb', line 45

def to_aozora(pre_html: false)
  @string = br_to_aozora unless pre_html
  @string = p_to_aozora
  @string = ruby_to_aozora
  unless @strip_decoration_tag
    @string = b_to_aozora
    @string = i_to_aozora
    @string = s_to_aozora
  end
  @string = img_to_aozora
  @string = em_to_sesame
  @string = delete_tag
  @string = Helper.restore_entity(@string)
  @string
end