lib/link_thumbnailer/model.rb in link_thumbnailer-2.5.0 vs lib/link_thumbnailer/model.rb in link_thumbnailer-2.5.1

- old
+ new

@@ -7,10 +7,10 @@ private def sanitize(str) return unless str - str.strip.gsub(/[\r\n\f]+/, "\n") + str.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '').strip.gsub(/[\r\n\f]+/, "\n") end end end