Module: Nexpose::Sanitize

Included in:
AssetGroup, Engine, Filter, ReportConfig, ReportTemplate, Role, ScanTemplate, Section, User
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(/&/, '&amp;').gsub(/'/, '&apos;').gsub(/"/, '&quot;').gsub(/</, '&lt;').gsub(/>/, '&gt;')
end