Module: Nexpose::Sanitize
- Included in:
- ReportTemplate, SMTPAlert, SNMPAlert, Section, SyslogAlert, UserConfig
- Defined in:
- lib/nexpose/util.rb
Instance Method Summary collapse
Instance Method Details
#replace_entities(str) ⇒ Object
3 4 5 |
# File 'lib/nexpose/util.rb', line 3 def replace_entities(str) str.to_s.gsub(/&/, '&').gsub(/'/, ''').gsub(/"/, '"').gsub(/</, '<').gsub(/>/, '>') end |