Method: HTML#br_to_aozora

Defined in:
lib/html.rb

#br_to_aozora(text = @string) ⇒ Object



65
66
67
# File 'lib/html.rb', line 65

def br_to_aozora(text = @string)
  text.gsub(/[\r\n]+/, "").gsub(/<br.*?>/i, "\n")
end