Check out example codes for "html escape characters". It will help you in understanding the concepts better.
Code Example 1
Escapes or unescapes an HTML file removing traces of offending characters that could be wrongfully interpreted as markup. The following characters are reserved in HTML and must be replaced with their corresponding HTML entities: " is replaced with " & is replaced with & < is replaced with < > is replaced with >
Learn ReactJs, React Native from akashmittal.com