mirror of
https://github.com/discourse/discourse.git
synced 2025-03-19 20:42:01 +08:00
remove HTML from amazon byline
This commit is contained in:
parent
d052026c51
commit
0cd7c592ec
@ -32,7 +32,7 @@ module Oneboxer
|
||||
result[:image] = image['src'] if image
|
||||
|
||||
result[:by_info] = html_doc.at("#by-line")
|
||||
result[:by_info] = BaseOnebox.remove_whitespace(result[:by_info].inner_html) if result[:by_info].present?
|
||||
result[:by_info] = BaseOnebox.remove_whitespace(BaseOnebox.replace_tags_with_spaces(result[:by_info].inner_html)) if result[:by_info].present?
|
||||
|
||||
summary = html_doc.at("#description-and-details-content")
|
||||
result[:text] = summary.inner_html if summary.present?
|
||||
|
Loading…
x
Reference in New Issue
Block a user