Skip to content

Commit

Permalink
🐛 fix svg escape issue in slope charts
Browse files Browse the repository at this point in the history
  • Loading branch information
danyx23 committed Oct 6, 2023
1 parent 2fc92a6 commit cb04469
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/@ourworldindata/grapher/src/text/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ export class Text extends React.Component<TextProps> {
const y = this.props.y + bounds.height - bounds.height * 0.2

return (
<text
{...omit(this.props, ["children"])}
y={y}
dangerouslySetInnerHTML={{ __html: this.props.children }}
/>
<text {...omit(this.props, ["children"])} y={y}>
{this.props.children}
</text>
)
}
}

0 comments on commit cb04469

Please sign in to comment.