Skip to content

Commit

Permalink
port: escape ampersand (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Oct 19, 2020
1 parent dd2f0ff commit 880352a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export const getGlobalThis = (): any => {

export function escapeHtml(rawText: string): string {
return rawText
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
Expand Down

0 comments on commit 880352a

Please sign in to comment.