User is able to add breaks adding metadata in UI causing invalid XML and loading errors
Expected behaviour
BCMS writes valid XML in chapter-processed book and collection metadata
Current behaviour
BCMS writes invalid XML because user can unintentionally create HTML breaks when entering metadata in UI doing shift enter
Steps to reproduce
- Go to - https://ncbi.cloud68.co/organizations/32d78686-4b9a-46af-b52a-f5d0c4052177/collectionmanager/c0178a80-2b75-4fde-90cd-875bd07b64ae/toc/6ab3b8db-cdc6-47f4-9931-a9fefee619ca
- Go to errors tab - bcms3425collect.xml: Invalid XML.
Warning: Start tag for undeclared element br
in unnamed entity at line 15 char 30
Warning
: Content model for p does not allow element br here
in unnamed entity at line 15 char 30
Possible solution
This is the normal behaviour of an editor for these key strokes. When a user presses Shift + enter
it should result in a line break or soft return.
Show soft return character (in red) so that the user is able to see their error more easily, and delete it.
Priority
Y, for deployment to not cause data quality issues
QA Steps
- This will affect all the multi line editors where you can press
Shift + enter
. - Try this on the book metadata modal for: abstract and notes description
- Try
Shift + enter
on collection metadata modal for: abstract and notes description