Class: String
Constant Summary collapse
- BLANK_RE =
/\A[[:space:]]*\z/
Instance Method Summary collapse
Instance Method Details
#html_safe ⇒ Object
71 72 73 |
# File 'lib/swee/support.rb', line 71 def html_safe self.gsub /[&"'><]/, { '&' => '&', '>' => '>', '<' => '<', '"' => '"', "'" => ''' } end |