<div
className={classes.htmlAnswer}
dangerouslySetInnerHTML={{ __html: faq.html_answer }}
style={{
a:{
textDecoration:'none',
color:'gold',
}
}}
/>
I am using Material UI and React JS.
Inside of the dangerouslySetInnerHTML, I want every anchor element that appears to receive the styling. How can I do this? The code above doesn't work.