FIX: Strip video oneboxes from excerpts

Follows up on 49843f327e and removes onebox markup for videos too in the excerpt, this was previously being counted as part of the excerpt length.
This commit is contained in:
Penar Musaraj 2020-02-17 13:52:23 -05:00
parent cd3fab9ccc
commit 708190802c
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ module PrettyText
def self.strip_oneboxed_media(doc)
doc.css("audio").remove
doc.css("video").remove
doc.css(".video-onebox,video").remove
end
def self.convert_vimeo_iframes(doc)