Skip to content

Commit 0ac75f8

Browse files
committed
Fix the issue with apostrophes in a better way
1 parent 9d1f327 commit 0ac75f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/RichTextEditor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export default class RichTextEditor extends Component {
246246
return string
247247
.replace(/[\\]/g, '\\\\')
248248
.replace(/[\"]/g, '\\\"')
249+
.replace(/[\']/g, '\\\'')
249250
.replace(/[\/]/g, '\\/')
250251
.replace(/[\b]/g, '\\b')
251252
.replace(/[\f]/g, '\\f')

0 commit comments

Comments
 (0)