openlibrary
openlibrary copied to clipboard
Fix author merge HTML entity rendering (#10640)
Closes #10640
fix
Technical
This PR improves author merge handling by ensuring HTML entities are properly preserved and rendered.
Changes include:
- Updating
merge_authorinopenlibrary/plugins/upstream/utils.pyto correctly handle HTML entities. - Updating
openlibrary/templates/merge/authors.htmlto safely display HTML entity-encoded fields during merges.
Testing
- Attempt to merge two author records containing HTML entities (e.g.,
&,",'). - Verify the merged output keeps entity encoding intact.
- Confirm the updated template displays encoded values correctly.
Screenshot
N/A — no direct UI redesign; only correct rendering behavior.
Stakeholders
@openlibrary/issues @internetarchive/openlibrary-maintainers