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(/&/, '&').gsub(/'/, ''').gsub(/"/, '"').gsub(/</, '<').gsub(/>/, '>') end