Make rubocop happy.

Make rubocop happy.

diff --git a/app/models/calendar_event.rb b/app/models/calendar_event.rb
index 09c54ae..6c0e03c 100644
--- a/app/models/calendar_event.rb
+++ b/app/models/calendar_event.rb
@@ -28,7 +28,7 @@ class CalendarEvent < ActiveRecord::Base
       to = (to || from).change(hour_adjustment(SiteSetting.all_day_event_end_time)) if adjust_to && !artificial_to
     end
 
-    doc = Nokogiri::HTML::fragment(post.cooked)
+    doc = Nokogiri::HTML5.fragment(post.cooked)
     doc.css('.discourse-local-date').each(&:remove)
     html = doc.to_html.sub(' → ', '')
 

GitHub sha: 13be8962