view config/initializers/ext_string.rb @ 168:0c60db0a3686

Less escaping, more xhtml
author nanaya <me@nanaya.pro>
date Wed, 08 Aug 2018 19:52:06 +0900
parents 61414d0a367b
children
line wrap: on
line source

class String
  def printable
    gsub(/[^\n[:print:]]/, '')
  end
end