There may be times when you will want to render a string with HTML entities in it in your React application. An HTML entity is a piece of text (
string) that begins with an ampersand (
&) and ends with a semicolon (
;). They are frequently used to display reserved and invisible characters, like non-breaking spaces (
) or soft hyphens (
​) for marking line breaking opportunities.
To render these characters, you need to use