ResearchHub / issues

File an issue or request a feature
1 stars 0 forks source link

Math symbolics shown in live view #78

Open TylerDiorio opened 2 months ago

TylerDiorio commented 2 months ago

Describe the bug Math symbols are not properly processed in the live view, but appear normally on the Paper title page. In this case, italics are causing an issue in the live feed.

To Reproduce Steps to reproduce the behavior:

  1. Go to paper visible in Live Feed
  2. See strange characters in the title
  3. Click on the paper page
  4. See no strange characters in the title

Expected behavior The title appears to process correctly on the paper page but not in the live feed.

Screenshots Live Feed w/issues: Screenshot 2024-07-18 at 3 35 14 PM

Paper page without issues:

Screenshot 2024-07-18 at 3 37 25 PM

Link to paper page: https://www.researchhub.com/paper/6692727/iin-situi-biophysical-characterization-of-high-concentration-protein-formulations-using-iwi-nmr

Desktop (please complete the following information):

kerkelae commented 2 weeks ago

This seems to be an issue with how the HTML tags are stripped from the title on the post page but not on the feed; raw text with the HTML tags (italics in this case) is shown instead. Given that the vast majority of papers do not have italics in the title, this bug does not show up that often. I can fix this once I've reconfigured the AWS dependency so that I can quickly test the changes I make.