Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

[BUGFIX] preserve nbsp chars when converting mathml choices to plain text [MER-2974] #232

Closed andersweinstein closed 9 months ago

andersweinstein commented 9 months ago

L&P course frequently uses mathml formulas in dropdown choices. HTML allows only plaintext, but worked in legacy because browsers effectively strip tags converting to plain text. This doesn't work in torus so migration tool was made to do the conversion to plain text. But its white-space stripping removed non-breaking space tags. This change preserves these so the non-breaking space characters, which are allowed in plain text, are preserved.