class String
Constants
- HTML_ESCAPE_CHARS
Public Instance Methods
html_escape()
click to toggle source
# File lib/omniboard/core_ext.rb, line 10 def html_escape HTML_ESCAPE_CHARS.reduce(self){ |str, (replace_this, with_this)| str.gsub(replace_this, with_this) } end
sanitize()
click to toggle source
TODO Fix up all of these
# File lib/omniboard/core_ext.rb, line 15 def sanitize self.gsub('"','\"').gsub("<","<").gsub(">", ">") end
sanitize_quotes()
click to toggle source
# File lib/omniboard/core_ext.rb, line 19 def sanitize_quotes self.gsub('"','"') end