Skip to content

Commit

Permalink
fix: fix encode not replace all issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed May 13, 2020
1 parent f26335e commit 2f0660e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ const LedgeMarkdownConverter = {
},

unescaped: (text: string) => text
.replace('&', '&')
.replace('>', '>')
.replace('&lt;', '<')
.replace('&quot;', '"')
.replace('&#39;', '\''),
.replace(/&amp;/g, '&')
.replace(/&gt;/g, '>')
.replace(/&lt;/g, '<')
.replace(/&quot;/g, '"')
.replace(/&#39;/g, '\''),

toJson(code: any) {
let config: any = {};
Expand Down

0 comments on commit 2f0660e

Please sign in to comment.