Skip to content

Commit

Permalink
github: events > convert html entities to proper characters
Browse files Browse the repository at this point in the history
  • Loading branch information
dsevillamartin committed Mar 3, 2024
1 parent 1ee69cf commit ae876b2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/GitHub/EventResponse.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const escape = require('markdown-escape');
const { decode } = require('html-entities');

class EventResponse {
constructor(bot, info) {
Expand All @@ -20,7 +21,7 @@ class EventResponse {
}

escape(str) {
return escape(str);
return decode(escape(str));
}
}

Expand Down
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"git-rev-sync": "^3.0.1",
"helmet": "^7.1.0",
"hpp": "^0.2.3",
"html-entities": "^2.4.0",
"ip-cidr": "^3.1.0",
"jsondiffpatch": "^0.4.1",
"knex": "^3.1.0",
Expand Down

0 comments on commit ae876b2

Please sign in to comment.