Skip to content

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Feb 1, 2023

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 jeffdaley requested a review from a team as a code owner February 23, 2023 18:11
@jeffdaley jeffdaley merged commit b24aa8c into main Mar 3, 2023
@jeffdaley jeffdaley deleted the jeffdaley/replace-special-characters branch March 3, 2023 20:07
anuragprafulla referenced this pull request in razorpay/hermes Jun 27, 2023
* Add `cleanString` function

* Update yarn.lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants