innerText Vs. innerHTML
innerText is used to print the plain text information between tags and requires some layout system information. It also ignores the space.
innerHTML is used to print content between labels, including text information. Cross site security attaks are the main disadvantage of innerHTML.
Differene between innerText and innerHTML
The below table shows the differene between innerText and innerHTML -