diff --git a/lib/acts_as_textiled.rb b/lib/acts_as_textiled.rb index 5c6374e..927fb53 100644 --- a/lib/acts_as_textiled.rb +++ b/lib/acts_as_textiled.rb @@ -21,7 +21,7 @@ def acts_as_textiled(*attributes) type = type.first if type.nil? && self[attribute] - textiled[attribute.to_s] ||= RedCloth.new(self[attribute], Array(ruled[attribute])).to_html + textiled[attribute.to_s] ||= RedCloth.new(self[attribute], Array(ruled[attribute])).to_html.to_s.html_safe elsif type.nil? && self[attribute].nil? nil elsif type_options.include?(type.to_s)