Styling in book subtitles shows as HTML on dashboard
Current behaviour
Related to work done in #1333 (closed), since we added subtitles to the dashboard, when subtitles have styling (either read from the converted file for wholebooks, or added by the user in the UI for chapter-processed books), that styling is displaying with HTML on the dashboard and collection manager.
!1044 (merged) solves this for chapter processed books, but for wholebooks, there is discussion around what approach is required to render them on the files tab (and therefore the dashboard and collection manager). Discussion on the desired approach will continue below and then we will update the issue.
Example book from ncbi here
Expected behaviour
User does not see HTML code in subtitles on the dashboard and collection manager.
NCBI priority
QA steps
- On a chapter processed book. Open the metadata modal.
- Add subtitle which is styled and save the metadata.
- Go back to the org dashboard and see that the metadata will appear correctly.
- Create an PDF wholebook. And upload this converted file: bcms5805.1.xml. One of the subtitles here has the tags
- Go back to book dashboard the html tags will not be shown.