fix html safe
This commit is contained in:
parent
ff2202a8f4
commit
c9efe01af7
|
@ -31,7 +31,7 @@ module SemanticRailsViewHelpers
|
||||||
value = value.to_label if value.respond_to?(:to_label)
|
value = value.to_label if value.respond_to?(:to_label)
|
||||||
|
|
||||||
if options[:raw]
|
if options[:raw]
|
||||||
value = value.html_safe
|
value = (value || '').html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
if SemanticRailsViewHelpers.semantic_data?
|
if SemanticRailsViewHelpers.semantic_data?
|
||||||
|
|
Loading…
Reference in New Issue