This sets the inner content of the element *without* trying to parse it.
You can inject any code in there; this serves as an escape hatch from the dom.
The only times you might actually need it are for < style > and < script > tags in html.
Other than that, innerHTML and/or innerText should do the job.
This sets the inner content of the element *without* trying to parse it. You can inject any code in there; this serves as an escape hatch from the dom.
The only times you might actually need it are for < style > and < script > tags in html. Other than that, innerHTML and/or innerText should do the job.