lib/nfg-client/utils.rb
# HTML Encodes the string if it is text, otherwise, leaves it as is
HTML Encodes the string if it is text, otherwise, leaves it as is
HTML Encodes the string if it is text otherwise leaves it as is
def encode_if_text(item)
      if item.respond_to?(:gsub)
        CGI.escapeHTML(item)
      else
        item
      end
    end
def encode_if_text ( item ) if item . respond_to? ( :gsub ) CGI . escapeHTML ( item ) else item end end
HTML Encodes the string if it is text, otherwise, leaves it as is
HTML Encodes the string if it is text otherwise leaves it as is
item
<not_specific>