Skip to content

Conversation

@thostetler
Copy link
Member

Article titles containing HTML/MathML markup (for scientific notation
like Greek letters, subscripts, superscripts) were being rendered
directly in document.title, showing raw markup instead of plain text.

Example: https://ui.adsabs.harvard.edu/abs/2025PhRvL.135m2301H/abstract

  • Strip HTML tags in _updateDocumentTitle() using jQuery text extraction
  • Add unit test verifying MathML and HTML tags are properly stripped

Article titles containing HTML/MathML markup (for scientific notation
like Greek letters, subscripts, superscripts) were being rendered
directly in document.title, showing raw markup instead of plain text.

- Strip HTML tags in _updateDocumentTitle() using jQuery text extraction
- Add unit test verifying MathML and HTML tags are properly stripped
@thostetler thostetler requested a review from shinyichen January 12, 2026 05:40
@thostetler thostetler merged commit 208f4be into adsabs:master Jan 15, 2026
1 check passed
@thostetler thostetler deleted the SCIX-684-fix-html-tags-in-title branch January 15, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants