class String # simple markdown def as_html self.gsub($/, '
') end # convert escaped strings, remove scritpts def to_html(opts={}) value = self.gsub(/</, '<').gsub(/>/, '>').gsub(/&/,'&') value = value.gsub(/