in JavaScript by
How are innerText and innerHTML different?

1 Answer

0 votes
by

innerText – innerText does not process an HTML tag if it is found within a string.

innerHTML – innerHTML processes an HTML tag if it is found within a string.

Related questions

0 votes
asked Sep 19, 2021 in JavaScript by sharadyadav1986
0 votes
asked Sep 19, 2021 in JavaScript by sharadyadav1986
0 votes
asked Aug 24, 2020 in JavaScript by Hodge
...