Skip to content

Commit

Permalink
Updating html-entities to use nonAsciiPrintableOnly (#110)
Browse files Browse the repository at this point in the history
* Encoding just the right characters

* Updating html-entities to use nonAsciiPrintableOnly
  • Loading branch information
mamuso authored Aug 4, 2023
1 parent c89ba7a commit 0b9af59
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 14 deletions.
13 changes: 7 additions & 6 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

18 changes: 14 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@actions/core": "^1.10.0",
"@octokit/graphql": "^5.0.4",
"@vercel/ncc": "^0.36.0",
"html-entities": "^2.3.3"
"html-entities": "^2.4"
},
"devDependencies": {
"@types/jest": "^29.2.1",
Expand Down
4 changes: 2 additions & 2 deletions src/weekly-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default class WeeklyUpdate {
'{{shortdate}}',
shortPostOnDateStr
)
this.postTemplate = encode(this.postTemplate, {mode: 'nonAsciiPrintable', level: 'xml'})
this.postTemplate = encode(this.postTemplate, {mode: 'nonAsciiPrintableOnly', level: 'xml'})
this.remindTemplate = this.readTemplateFile(this.config.remind_template)?.replace(
'{{date}}',
shortPreviousPostOnDateStr
Expand All @@ -74,7 +74,7 @@ export default class WeeklyUpdate {
'{{shortdate}}',
shortPreviousPostOnDateStr
)
this.remindTemplate = encode(this.remindTemplate, {mode: 'nonAsciiPrintable', level: 'xml'})
this.remindTemplate = encode(this.remindTemplate, {mode: 'nonAsciiPrintableOnly', level: 'xml'})

/**
* Determine the route that the action needs to take based on the day of the week and the configuration. The route will be one of the following:
Expand Down

0 comments on commit 0b9af59

Please sign in to comment.