lib/onebox/engine/google_docs_onebox.rb in onebox-1.8.76 vs lib/onebox/engine/google_docs_onebox.rb in onebox-1.8.77
- old
+ new
@@ -24,10 +24,10 @@
def data
og_data = get_og_data
result = { link: link,
title: og_data[:title] || "Google #{shorttype.to_s.capitalize}",
- description: Sanitize.fragment(Onebox::Helpers.truncate(og_data[:description], 250)) || "This #{shorttype.to_s.chop.capitalize} is private",
+ description: Onebox::Helpers.truncate(og_data[:description], 250) || "This #{shorttype.to_s.chop.capitalize} is private",
type: shorttype
}
result
end