lib/onebox/engine/youtube_onebox.rb in onebox-1.8.50 vs lib/onebox/engine/youtube_onebox.rb in onebox-1.8.51
- old
+ new
@@ -48,10 +48,10 @@
end
end
def video_title
@video_title ||= begin
- video_oembed_data[:title]
+ Sanitize.fragment(Onebox::Helpers.truncate(video_oembed_data[:title].strip, 80))
rescue
nil
end
end