hermes icon indicating copy to clipboard operation
hermes copied to clipboard

Fixes errors caused by special characters

Open jeffdaley opened this issue 3 years ago • 0 comments

Applies a cleanString function to editable Document properties to replace invalid characters with ASCII-friendly equivalents. This fixes an error where creating or saving a doc with special characters, e.g., smart quotes, bullets, accented letters, would throw an error and sometimes delete the document header.

I consider this a short-term solution while we investigate how to make special characters work.

New dependency: https://www.npmjs.com/package/replace-special-characters

jeffdaley avatar Feb 01 '23 22:02 jeffdaley