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