Encountered a problem with the radio buttons in Material UI. Currently, Material UI accepts value as a prop for the FormControlLabel component. When passing a string with an HTML entity like below, it gets parsed correctly.
<FormControlLabel value="female" label="I'm male" />
output: I'm male
However, when passing the same string as a prop, it does not get parsed correctly and the special character is displayed as sent.
const label="I'm male";
<FormControlLabel value={value} label={label} />
output: I'm male
I searched online for relevant threads but couldn't find any. If there is an existing issue, please provide a link or suggest an alternative solution if you have one. Below is the link to the codesandbox: