Skip to content

Commit

Permalink
Use #x27 instead of &#39 to escape single quotes (#88)
Browse files Browse the repository at this point in the history
* Use #x27 instead of &#39 to escape single quotes

* Update test

* Add changeset
  • Loading branch information
tazsingh committed May 3, 2023
1 parent ed954e0 commit c450602
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-bananas-hang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'hoofd': minor
---

Escape single quotes via x27 instead of 39
2 changes: 1 addition & 1 deletion __tests__/ssr.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('ssr', () => {

expect(metas).toEqual([
{ content: '""', property: 'fb:something' },
{ content: '''<>&', property: 'fb:admins' },
{ content: '''<>&', property: 'fb:admins' },
]);
});

Expand Down
2 changes: 1 addition & 1 deletion src/dispatcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export const createDispatcher = () => {
ch = '&';
break;
case 39:
ch = ''';
ch = ''';
break;
case 60:
ch = '<';
Expand Down

0 comments on commit c450602

Please sign in to comment.