Fixed rendering of excess whitespace in status card titles (#30017)

This commit is contained in:
Tim Rogers authored and GitHub committed 2024-04-24 09:09:21 +00:00
1 parent f4a53f3fb4
commit b128474625
1 file changed
+1 -1
+1 -1
View File
@@ -156,7 +156,7 @@ class LinkDetailsExtractor
end
def title
html_entities.decode(structured_data&.headline || opengraph_tag('og:title') || document.xpath('//title').map(&:content).first)
html_entities.decode(structured_data&.headline || opengraph_tag('og:title') || document.xpath('//title').map(&:content).first).strip
end
def description