jQuery provides two APIs that can be used directly to add content to elements.
html()
text()
where html() is to add html content to the specified element
text() is to add text content to the specified element
The difference between the two is that the content in text is plain text and will not be parsed into html
If you want to operate on the following html code
element.
If using text()
element.');
element.