module Nexpose::Sanitize

Public Instance Methods

replace_entities(str) click to toggle source
# 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