I need to change the content of an element which includes html.
I tried with this, but the html tags are printed
$('#content-sections label').text('my text <span>a span element</span>');
This is printed as it:
my text <span>a span element</span>