Skip to content

Commit

Permalink
hotfix escaped quotes in titles StoryItem component
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Feb 6, 2024
1 parent 2a79a1b commit e5e0efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/StoryItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const StoryItem = ({ story, reduced = false, showLanguages = true, className = '
className="m-0 "
dangerouslySetInnerHTML={{
__html: title
.replace(/\\"/g, '"')
.split(/[[\]]/)
.join('')
.split(/\{[^}]+\}/)
Expand Down
1 change: 1 addition & 0 deletions src/components/StoryItemSmall.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const StoryItemSmall = ({ story }) => {
style={{ fontWeight: 700 }}
dangerouslySetInnerHTML={{
__html: title
.replace(/\\"/g, '"')
.split(/[[\]]/)
.join('')
.split(/\{[^}]+\}/)
Expand Down

0 comments on commit e5e0efb

Please sign in to comment.