When I do this:
$('.myDiv').html("<strong>Hello World</strong>");
The output inside myDiv is literally:
<strong>Hello World</strong>
instead of Hello World simply being bolded. Is there any way to use html inside the html() function or a similar function that actually translates html instead of showing it literally?
EDIT
oops I just realized the above code actually does work. My problem was I am trying to replace the contents of a textarea with html inside and that echoed out the html because that's what happens when you put html inside a textarea anyway. So nothing to do with jQuery.