class DataMapper::Property::Legacy::HTMLText
Public Instance Methods
dump(value)
click to toggle source
HTML escapes data.
@param [String, nil] value
The raw data.
@return [String, nil]
The HTML escaped data.
# File lib/dm-core/property/legacy/html_text.rb, line 32 def dump(value) CGI.escape_html(value) unless value.nil? end
load(value)
click to toggle source
Unescaped HTML escaped data.
@param [String, nil] value
The HTML escaped data.
@return [String, nil]
The HTML unescaped data.
# File lib/dm-core/property/legacy/html_text.rb, line 19 def load(value) CGI.unescape_html(value) unless value.nil? end