This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
URL previews contain entities #14708
Labels
A-URL-Preview
Issues related to generating server-side previews of remote URLs
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
(I'm fairly certain this is a Synapse bug and not a client bug.)
Previews of some URLs, e.g. https://www.lucidchart.com/techblog/2018/07/16/why-json-isnt-a-good-configuration-language/ end up with HTML entities in them:
The page does have an
og:title
element (with a value that matches thetitle
andtwitter:title
elements). This includes the HTML entity ('
) in it. I'm guessing Synapse should be escaping this before returning the JSON blob.Relevant HTML
Processed Open Graph response
As an aside, the processed description seems to be incorrect this -- seems to be because it also offers an oembed link to https://www.lucidchart.com/techblog/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.lucidchart.com%2Ftechblog%2F2018%2F07%2F16%2Fwhy-json-isnt-a-good-configuration-language%2F which has worse info in it:
oEmbed Response
The text was updated successfully, but these errors were encountered: