[Files] Sanitise Assignment titles on input

Problem statement:

When pasting assignment titles from internally generated documents (typically word), special characters like the em-dash are not sanitised, leading to gradebook export display issues.

Proposed solution:

Sanitise all title inputs on submission, to prevent non-formatted text outputs (like the CSV Gradebook export) from attempting to display nonstandard character encodings. This has lead to several instances that I've escalated to engineering where the gradebook export cannot be reimported, and throws an error. Viewing the file shows nonstandard characters and CR/LR characters that are not stripped from the originating source preventing display in excel, and sometimes precluding reupload when not modified.

User role(s):

admin,instructor

Added to Theme

Technical Functionality Theme Status: Identified

5 Comments
Mikee
Community Participant

Screen Shot 2022-10-21 at 9.53.35 am.jpg

and here it is as displayed in the subject web view:
Screen Shot 2022-10-21 at 10.23.03 am.jpg

KristinL
Community Team
Community Team
Status changed to: Open
 
Mikee
Community Participant

Screenshot 2022-11-01 at 12.01.06 pm.jpg

 

Might be an idea to filter "inappropriate emoji" here as well... 

KristinL
Community Team
Community Team
Status changed to: New
 
KristinL
Community Team
Community Team
Status changed to: Added to Theme