Skip to content

Commit

Permalink
[v9.2.x] Fix xss in Graphite functions tooltip (#810)
Browse files Browse the repository at this point in the history
Fix xss in Graphite functions tooltip (#804)

(cherry picked from commit 87aad3f11836f810ee1fdfee27827e746ef36055)

Co-authored-by: Ludovic Viaud <ludovic.viaud@gmail.com>
  • Loading branch information
itsmylife and LudoVio committed Mar 16, 2023
1 parent 0dbdbfe commit e59427c
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -11,11 +11,9 @@ export interface FunctionEditorControlsProps {
}

const FunctionDescription = React.lazy(async () => {
// @ts-ignore
const { default: rst2html } = await import(/* webpackChunkName: "rst2html" */ 'rst2html');
return {
default(props: { description?: string }) {
return <div dangerouslySetInnerHTML={{ __html: rst2html(props.description ?? '') }} />;
return <div>{props.description}</div>;
},
};
});
Expand Down

0 comments on commit e59427c

Please sign in to comment.