Skip to content

Commit

Permalink
fix: fix missing semicolon in htmlEscapes object
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuelgsouza committed Jun 24, 2020
1 parent 6fc21e9 commit f569203
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/richTextResolver.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const defaultHtmlSerializer = require('./schema')
const escapeHTML = function(string) {
const htmlEscapes = {
'&': '&amp',
'<': '&lt',
'>': '&gt',
'"': '&quot',
"'": '&#39'
'&': '&amp;',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#39;'
}

const reUnescapedHtml = /[&<>"']/g
Expand Down

0 comments on commit f569203

Please sign in to comment.