class String
Monkey-patched String
method for fixing responses.
Public Instance Methods
normalize()
click to toggle source
Fixes <, & and other &'s characters, replaces crlf to lf newlines.
@return [String] same text with correctly displayed &xxxx; characters and lf newlines.
# File lib/qna_maker/string.rb, line 14 def normalize CODER.decode(self).gsub(/\r\n?/, "\n") end