Module: Slack::Notifier::Util::Escape
- Defined in:
- lib/slack-notifier/util/escape.rb
Constant Summary collapse
- HTML_REGEXP =
/[&><]/
- HTML_REPLACE =
{ "&" => "&", ">" => ">", "<" => "<" }.freeze
Class Method Summary collapse
Class Method Details
.html(string) ⇒ Object
10 11 12 |
# File 'lib/slack-notifier/util/escape.rb', line 10 def self.html string string.gsub(HTML_REGEXP, HTML_REPLACE) end |