Get and Set HTML in jQuery — a practical guide to jQuery html() with clear examples you can reuse in real projects.
jQuery Tutorial Series (37/101). Prefer one article? Read the complete jQuery tutorial.
Short description
Never inject unsanitized user HTML — XSS risk.
html()
$('#content').html('<strong>Hello</strong>');